def test_extra_nested_value(self):
    event = self.get_event()
    rule = self.get_rule(data={'match': MatchType.EQUAL, 'attribute': 'extra.foo.bar', 'value': 'baz'})
    self.assertPasses(rule, event)
    rule = self.get_rule(data={'match': MatchType.EQUAL, 'attribute': 'extra.foo.bar', 'value': 'bar'})
    self.assertDoesNotPass(rule, event)
def test_extra_nested_value(self):
    event = self.get_event()
    rule = self.get_rule(data={'match': MatchType.EQUAL, 'attribute': 'extra.foo.bar', 'value': 'baz'})
    self.assertPasses(rule, event)
    rule = self.get_rule(data={'match': MatchType.EQUAL, 'attribute': 'extra.foo.bar', 'value': 'bar'})
    self.assertDoesNotPass(rule, event)