def test_key_matcher_get_7(self): matcher = KeyMatcher() matcher.set("*/paul", "test") self.assertEqual(matcher.get("any/thing/else/paul"), "test")
def test_key_matcher_get_4(self): matcher = KeyMatcher() matcher.set("*/paul", "test") self.assertEqual(matcher.get("paul"), "test")
def test_key_matcher_get_fail(self): matcher = KeyMatcher() matcher.set("paul", "test") self.assertEqual(matcher.get("pauls"), None)