

def testTriggersMatchConditions(self):
    t = triggers.Triggers()
    t.Add('GoodAI', target_1)
    self.assertFalse(t.Match(*termos))
    t.Add('BadAI', target_2)
    self.assertTrue(t.Match(*t800))
    t.Add('BadAI', target_1)
    self.assertTrue(t.Match(*termos))

dataset/ETHPy150Open google/grr/grr/lib/checks/triggers_test.py TriggersTest.testTriggersMatchConditions/original