def test_examples_wordcount_debugging(self): temp_path = self.create_temp_file( 'Flourish Flourish Flourish stomach abc def') result_path = self.create_temp_file() snippets.examples_wordcount_debugging( {'read': temp_path, 'write': result_path}) self.assertEqual( self.get_output(result_path), ['Flourish: 3', 'stomach: 1'])
def test_examples_wordcount_debugging(self): temp_path = self.create_temp_file( 'Flourish Flourish Flourish stomach abc def') result_path = self.create_temp_file() snippets.examples_wordcount_debugging( {'read': temp_path, 'write': result_path}) self.assertEqual( self.get_output(result_path), ['Flourish: 3', 'stomach: 1'])