def test_log_audit(self):
    'Test that AUDIT log entry goes to the audit log.'
    logging.setup(self.cfg_path)
    log = logging.getLogger(__name__)
    msg = uuid.uuid4().hex
    log.audit(msg)
    info_log_entries = open(self.info_log_path).read()
    self.assertIn(msg, info_log_entries)
    audit_log_entries = open(self.audit_log_path).read()
    self.assertIn(msg, audit_log_entries)
Test that AUDIT log entry goes to the audit log.
def test_log_audit(self):
    
    logging.setup(self.cfg_path)
    log = logging.getLogger(__name__)
    msg = uuid.uuid4().hex
    log.audit(msg)
    info_log_entries = open(self.info_log_path).read()
    self.assertIn(msg, info_log_entries)
    audit_log_entries = open(self.audit_log_path).read()
    self.assertIn(msg, audit_log_entries)