Example #1
0
 	def test_save_config_and_close(self):
 		xmlhandler = FileHandlerXML(self.file_actual, 'w')
 		xmlhandler.create_config_file(self.custom_config)
 		self.assertTrue(xmlhandler.file.closed)
Example #2
0
	def test_config_file_is_created(self):
		xmlhandler = FileHandlerXML(self.file_actual, 'w')
		xmlhandler.create_config_file(self.custom_config)
		with open(self.file_actual) as rawfile:
			actual_xml_content = rawfile.readlines()
		self.assertEqual(actual_xml_content, self.expected_xml_content)