

def testTriggersRequireArtifact(self):
    t = triggers.Triggers()
    t.assertRaises(triggers.DefinitionError, t.Add)
    self.assertRaises(triggers.DefinitionError, t.Add, None, target_1)

dataset/ETHPy150Open google/grr/grr/lib/checks/triggers_test.py TriggersTest.testTriggersRequireArtifact/VarMisuse@18/25 `self`->`t`