def test_user_id(self):
    event = self.get_event()
    rule = self.get_rule(data={'match': MatchType.EQUAL, 'attribute': 'user.id', 'value': '1'})
    self.assertPasses(rule, event)
    rule = self.get_rule(data={'match': MatchType.EQUAL, 'attribute': 'user.id', 'value': '2'})
    self.assertDoesNotPass(rule, event)
def test_user_id(self):
    event = self.get_event()
    rule = self.get_rule(data={'match': MatchType.EQUAL, 'attribute': 'user.id', 'value': '1'})
    self.assertPasses(rule, event)
    rule = self.get_rule(data={'match': MatchType.EQUAL, 'attribute': 'user.id', 'value': '2'})
    self.assertDoesNotPass(rule, event)