Beispiel #1
0
	def test_export_txt_and_close(self):
		txthandler = FileHandlerTXT(self.file_actual, 'w')
		txthandler.export_file(self.matrix)
		self.assertTrue(txthandler.file.closed)
Beispiel #2
0
	def test_export_matrix_to_txt(self):
		txthandler = FileHandlerTXT(self.file_actual, 'w')
		txthandler.export_file(self.matrix)
		with open(self.file_actual) as file:
			txt_content_actual = file.readlines()
		self.assertEqual(self.txt_content_expected, txt_content_actual)