Пример #1
0
 def test_key_matcher_get_7(self):
     matcher = KeyMatcher()
     matcher.set("*/paul", "test")
     self.assertEqual(matcher.get("any/thing/else/paul"), "test")
Пример #2
0
 def test_key_matcher_get_4(self):
     matcher = KeyMatcher()
     matcher.set("*/paul", "test")
     self.assertEqual(matcher.get("paul"), "test")
Пример #3
0
 def test_key_matcher_get_fail(self):
     matcher = KeyMatcher()
     matcher.set("paul", "test")
     self.assertEqual(matcher.get("pauls"), None)
Пример #4
0
 def test_key_matcher_get_7(self):
     matcher = KeyMatcher()
     matcher.set("*/paul", "test")
     self.assertEqual(matcher.get("any/thing/else/paul"), "test")
Пример #5
0
 def test_key_matcher_get_4(self):
     matcher = KeyMatcher()
     matcher.set("*/paul", "test")
     self.assertEqual(matcher.get("paul"), "test")
Пример #6
0
 def test_key_matcher_get_fail(self):
     matcher = KeyMatcher()
     matcher.set("paul", "test")
     self.assertEqual(matcher.get("pauls"), None)