Ejemplo n.º 1
0
 def test_configure_logging(self):
     expected = "INFO elifecleaner:test_init:test_configure_logging: test_configure_logging\n"
     configure_logging(self.log_file)
     LOGGER.info("test_configure_logging")
     with open(self.log_file, "r") as open_file:
         self.assertEqual(open_file.read(), expected)
Ejemplo n.º 2
0
 def setUp(self):
     self.temp_dir = "tests/tmp"
     self.output_dir = "tests/tmp_output"
     self.log_file = os.path.join(self.temp_dir, "test.log")
     self.log_handler = configure_logging(self.log_file)
Ejemplo n.º 3
0
 def setUp(self):
     self.temp_dir = "tests/tmp"
     self.log_file = os.path.join(self.temp_dir, "test.log")
     self.log_handler = configure_logging(self.log_file)
     self.original_repair_xml_value = parse.REPAIR_XML