summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/test_variables.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test_variables.py b/test/test_variables.py
index f110fb74..728e86b0 100644
--- a/test/test_variables.py
+++ b/test/test_variables.py
@@ -17,6 +17,7 @@ class TestVariables(TestApplicationProto):
"5GET": [{"action": {"return": 206}}],
"GETGET": [{"action": {"return": 207}}],
"localhost": [{"action": {"return": 208}}],
+ "9*?q": [{"action": {"return": 209}}],
},
},
), 'configure routes'
@@ -28,6 +29,14 @@ class TestVariables(TestApplicationProto):
assert self.get()['status'] == 201, 'method GET'
assert self.post()['status'] == 202, 'method POST'
+ def test_variables_request_uri(self):
+ self.conf_routes("\"routes$request_uri\"")
+
+ assert self.get(url='/3')['status'] == 203, 'request_uri'
+ assert self.get(url='/4*')['status'] == 204, 'request_uri 2'
+ assert self.get(url='/4%2A')['status'] == 204, 'request_uri 3'
+ assert self.get(url='/9%2A?q')['status'] == 209, 'request_uri & query'
+
def test_variables_uri(self):
self.conf_routes("\"routes$uri\"")