2024-heraklion-testing-debu.../hands_on/first/test_first.py

20 lines
282 B
Python
Raw Normal View History

2024-08-26 13:54:13 +02:00
from first import times_3
def test_times_3_integer():
value = 7
expected = 21
result = times_3(value)
assert result == expected
def test_times_3_string():
value = 'wow'
expected = 'wowwowwow'
result = times_3(value)
assert result == expected