def setUp(self):
    super(LoggerTestCase, self).setUp()
    self.config_text = open(CONFIG_FILE_PATH).read()
    (self.cfg_fd, self.cfg_path) = tempfile.mkstemp()
    (self.info_log_fd, self.info_log_path) = tempfile.mkstemp()
    (self.audit_log_fd, self.audit_log_path) = tempfile.mkstemp()
    with open(self.cfg_path, 'a') as f:
        f.write(self.config_text.format(self.info_log_path, self.audit_log_path))
def setUp(self):
    super(LoggerTestCase, self).setUp()
    self.config_text = open(CONFIG_FILE_PATH).read()
    (self.cfg_fd, self.cfg_path) = tempfile.mkstemp()
    (self.info_log_fd, self.info_log_path) = tempfile.mkstemp()
    (self.audit_log_fd, self.audit_log_path) = tempfile.mkstemp()
    with open(self.cfg_path, 'a') as f:
        f.write(self.config_text.format(self.info_log_path, self.audit_log_path))