Ejemplo n.º 1
0
 def test_check_no_log_audit(self):
     self.assertEqual(
         1,
         len(
             list(
                 checks.check_no_log_audit(
                     "LOG.audit('My test audit log')"))))
     self.assertEqual(
         0,
         len(
             list(checks.check_no_log_audit(
                 "LOG.info('My info test log.')"))))
 def test_check_no_log_audit(self):
     self.assertEqual(1, len(list(checks.check_no_log_audit(
         "LOG.audit('My test audit log')"))))
     self.assertEqual(0, len(list(checks.check_no_log_audit(
         "LOG.info('My info test log.')"))))