def test_starts_with(self):
    event = self.get_event()
    rule = self.get_rule(data={'match': MatchType.STARTS_WITH, 'attribute': 'platform', 'value': 'ph'})
    self.assertPasses(rule, event)
    rule = self.get_rule(data={'match': MatchType.STARTS_WITH, 'attribute': 'platform', 'value': 'py'})
    self.assertDoesNotPass(rule, event)
def test_starts_with(self):
    event = self.get_event()
    rule = self.get_rule(data={'match': MatchType.STARTS_WITH, 'attribute': 'platform', 'value': 'ph'})
    self.assertPasses(rule, event)
    rule = self.get_rule(data={'match': MatchType.STARTS_WITH, 'attribute': 'platform', 'value': 'py'})
    self.assertDoesNotPass(rule, event)