from tools.wordcount import count def test_count(): assert count('hello world\nsecond line\n') == {'lines': 2, 'words': 4, 'characters': 24}