hellocomputer/test/test_tools.py
Guillem Borrell e040b2e728
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Got to correctly import
2024-08-20 08:30:26 +02:00

14 lines
252 B
Python

from hellocomputer.tools import extract_sid, remove_sid
message = """This is a message
******sid******
"""
def test_match_sid():
assert extract_sid(message) == "sid"
def test_remove_sid():
assert remove_sid(message) == "This is a message"