def test_check_suricata(): class caller(object): results = { "suricata": { "alerts": [{ "signature": "SID_TEST", }], }, } s = Signature(caller) assert s.check_suricata_alerts(".*TEST.*")
def test_check_suricata(): class caller(object): results = { "suricata": { "alerts": [{ "signature": "SID_TEST", }], }, } s = Signature(caller) assert s.check_suricata_alerts(".*TEST.*")
def report(self, obj): class caller(object): results = obj return Signature(caller())