def test_ends_with(self):
    event = self.get_event()
    rule = self.get_rule(data={'match': MatchType.ENDS_WITH, 'attribute': 'platform', 'value': 'hp'})
    self.assertPasses(rule, event)
    rule = self.get_rule(data={'match': MatchType.ENDS_WITH, 'attribute': 'platform', 'value': 'thon'})
    self.assertDoesNotPass(rule, event)
def test_ends_with(self):
    event = self.get_event()
    rule = self.get_rule(data={'match': MatchType.ENDS_WITH, 'attribute': 'platform', 'value': 'hp'})
    self.assertPasses(rule, event)
    rule = self.get_rule(data={'match': MatchType.ENDS_WITH, 'attribute': 'platform', 'value': 'thon'})
    self.assertDoesNotPass(rule, event)