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