def test_does_not_contain(self):
    event = self.get_event()
    rule = self.get_rule(data={'match': MatchType.NOT_CONTAINS, 'attribute': 'platform', 'value': 'p'})
    self.assertDoesNotPass(rule, event)
    rule = self.get_rule(data={'match': MatchType.NOT_CONTAINS, 'attribute': 'platform', 'value': 'z'})
    self.assertPasses(rule, event)
def test_does_not_contain(self):
    event = self.get_event()
    rule = self.get_rule(data={'match': MatchType.NOT_CONTAINS, 'attribute': 'platform', 'value': 'p'})
    self.assertDoesNotPass(rule, event)
    rule = self.get_rule(data={'match': MatchType.NOT_CONTAINS, 'attribute': 'platform', 'value': 'z'})
    self.assertPasses(rule, event)