Ejemplo n.º 1
0
 def match(self, data=None, timeout=None):  # pylint:disable=invalid-name
     self.invocations.append((data, timeout))
     if len(self.invocations) >= 3:
         raise yara.Error("internal error: 30")
     return [FakeMatch("test_rule_%d" % len(self.invocations))]
Ejemplo n.º 2
0
 def match(data):
     raise yara.Error()