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

Class TestSpecExamplesByRFCSection

tests/test_from_fixtures.py:83–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81
82
83class TestSpecExamplesByRFCSection(FixtureMixin):
84 examples = load_examples("spec-examples-by-section")
85
86 def test_variable_expansion(self) -> None:
87 """Check variable expansion."""
88 self._test("3.2.1 Variable Expansion")
89
90 def test_simple_string_expansion(self) -> None:
91 """Check simple string expansion."""
92 self._test("3.2.2 Simple String Expansion")
93
94 def test_reserved_expansion(self) -> None:
95 """Check reserved expansion."""
96 self._test("3.2.3 Reserved Expansion")
97
98 def test_fragment_expansion(self) -> None:
99 """Check fragment expansion."""
100 self._test("3.2.4 Fragment Expansion")
101
102 def test_dot_prefixed_label_expansion(self) -> None:
103 """Check label expansion with dot-prefix."""
104 self._test("3.2.5 Label Expansion with Dot-Prefix")
105
106 def test_path_segment_expansion(self) -> None:
107 """Check path segment expansion."""
108 self._test("3.2.6 Path Segment Expansion")
109
110 def test_path_style_parameter_expansion(self) -> None:
111 """Check path-style param expansion."""
112 self._test("3.2.7 Path-Style Parameter Expansion")
113
114 def test_form_style_query_expansion(self) -> None:
115 """Check form-style query expansion."""
116 self._test("3.2.8 Form-Style Query Expansion")
117
118 def test_form_style_query_cntinuation(self) -> None:
119 """Check form-style query continuation."""
120 self._test("3.2.9 Form-Style Query Continuation")
121
122
123class TestExtendedTests(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…