(self: "unittest.TestCase")
| 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 |
nothing calls this directly
no test coverage detected