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

Class TestSpecExamples

tests/test_from_fixtures.py:63–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61
62
63class TestSpecExamples(FixtureMixin):
64 examples = load_examples("spec-examples")
65
66 def test_level_1(self) -> None:
67 """Check that uritemplate.expand matches Level 1 expectations."""
68 self._test("Level 1 Examples")
69
70 def test_level_2(self) -> None:
71 """Check that uritemplate.expand matches Level 2 expectations."""
72 self._test("Level 2 Examples")
73
74 def test_level_3(self) -> None:
75 """Check that uritemplate.expand matches Level 3 expectations."""
76 self._test("Level 3 Examples")
77
78 def test_level_4(self) -> None:
79 """Check that uritemplate.expand matches Level 4 expectations."""
80 self._test("Level 4 Examples")
81
82
83class TestSpecExamplesByRFCSection(FixtureMixin):

Callers

nothing calls this directly

Calls 1

load_examplesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…