Esempio n. 1
0
	def test_sort_file_with_two_lines(self):
		fake_file = FakeFileWrapper('One two, three, for,\n eleven, five, ana')
		parser_result = ParserResult(fake_file.open())
		self.assertEqual(['ana ', 'eleven ', 'five ', 'for ',  'One ', 'three ', 'two ' ], parser_result.sort_file())
Esempio n. 2
0
	def test_sort_file_with_one_line(self):
		fake_file = FakeFileWrapper('One two, three, for, eleven')
		parser_result = ParserResult(fake_file.open())
		self.assertEqual(['eleven ', 'for ', 'One ', 'three ', 'two '], parser_result.sort_file())