kata/fizzbuzz/test_fizzbuzz.py

8 lines
150 B
Python
Raw Normal View History

2019-11-30 11:36:58 +01:00
from fizzbuzz import fizzbuzz
def test_fizzbuzz_counts_to_two(capsys):
fizzbuzz(2)
out, __ = capsys.readouterr()
assert out == "1\n2\n"