def test_stacktrace_module(self):
    event = self.get_event()
    rule = self.get_rule(data={'match': MatchType.EQUAL, 'attribute': 'stacktrace.module', 'value': 'example'})
    self.assertPasses(rule, event)
    rule = self.get_rule(data={'match': MatchType.EQUAL, 'attribute': 'stacktrace.module', 'value': 'foo'})
    self.assertDoesNotPass(rule, event)
def test_stacktrace_module(self):
    event = self.get_event()
    rule = self.get_rule(data={'match': MatchType.EQUAL, 'attribute': 'stacktrace.module', 'value': 'example'})
    self.assertPasses(rule, event)
    rule = self.get_rule(data={'match': MatchType.EQUAL, 'attribute': 'stacktrace.module', 'value': 'foo'})
    self.assertDoesNotPass(rule, event)