Update test_resource_template.py

This commit is contained in:
Jeremiah Lowin 2025-04-24 15:07:06 -04:00
commit f2c5f0d708

View file

@ -436,3 +436,10 @@ class TestMatchUriTemplate:
uri_template = "test://a/{x*}/{y}"
result = match_uri_template(uri=uri, uri_template=uri_template)
assert result == {"x": "x/y", "y": "b"}
def test_match_consecutive_params(self):
"""Test that consecutive parameters without a / are not matched."""
uri = "test://a/x/y"
uri_template = "test://a/{x}{y}"
result = match_uri_template(uri=uri, uri_template=uri_template)
assert result is None