Spaces:
Running
Running
Jeremiah Lowin commited on
Commit ·
ce692fd
1
Parent(s): b770cbf
Update test_resource_template.py
Browse files
tests/resources/test_resource_template.py
CHANGED
|
@@ -436,3 +436,10 @@ class TestMatchUriTemplate:
|
|
| 436 |
uri_template = "test://a/{x*}/{y}"
|
| 437 |
result = match_uri_template(uri=uri, uri_template=uri_template)
|
| 438 |
assert result == {"x": "x/y", "y": "b"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 436 |
uri_template = "test://a/{x*}/{y}"
|
| 437 |
result = match_uri_template(uri=uri, uri_template=uri_template)
|
| 438 |
assert result == {"x": "x/y", "y": "b"}
|
| 439 |
+
|
| 440 |
+
def test_match_consecutive_params(self):
|
| 441 |
+
"""Test that consecutive parameters without a / are not matched."""
|
| 442 |
+
uri = "test://a/x/y"
|
| 443 |
+
uri_template = "test://a/{x}{y}"
|
| 444 |
+
result = match_uri_template(uri=uri, uri_template=uri_template)
|
| 445 |
+
assert result is None
|