Beispiel #1
0
 def test_get_key_with_wildcard(self):
     match_key = MatchKey('test %M %M', [], ['var1', 'var2'])
     self.assertEqual(match_key._get_key(), 'test [^ ]* [^ ]*')
Beispiel #2
0
 def test_get_key_with_wildcard(self):
     match_key = MatchKey('test %M %M', [], ['var1', 'var2'])
     self.assertEqual(match_key._get_key(), 'test [^ ]* [^ ]*')
Beispiel #3
0
 def test_get_key_no_wildcard(self):
     match_key = MatchKey('test', [], [])
     self.assertEquals(match_key._get_key(), 'test')
Beispiel #4
0
 def test_get_key_no_wildcard(self):
     match_key = MatchKey('test', [], [])
     self.assertEquals(match_key._get_key(), 'test')