MCPcopy Create free account
hub / github.com/python-hyper/uritemplate / _test_

Method _test_

tests/test_uritemplate.py:384–390  ·  view source on GitHub ↗
(self: "unittest.TestCase")

Source from the content-addressed store, hash-verified

382 d: t.Dict[str, ExampleWithVariables],
383 ) -> collections.abc.Callable[["unittest.TestCase"], None]:
384 def _test_(self: "unittest.TestCase") -> None:
385 for k, v in d.items():
386 with self.subTest(template=k, **v):
387 t = URITemplate(k)
388 self.assertEqual(
389 t.expand(v["expansion"]), v["expected"]
390 )
391
392 return _test_
393

Callers

nothing calls this directly

Calls 2

expandMethod · 0.95
URITemplateClass · 0.90

Tested by

no test coverage detected