def test_count_unspaced(self): file_content = "sad fasdasd" self.__write_to_file(file_content) self.assertEqual(fw.countWords(self.file, "asd"), 2)
def test_count(self): file_content = "asd asd asd aswdasd" self.__write_to_file(file_content) self.assertEqual(fw.countWords(self.file, "asd"),3)