def test_get_key_with_wildcard(self): match_key = MatchKey('test %M %M', [], ['var1', 'var2']) self.assertEqual(match_key._get_key(), 'test [^ ]* [^ ]*')
def test_get_key_no_wildcard(self): match_key = MatchKey('test', [], []) self.assertEquals(match_key._get_key(), 'test')