summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2022-06-01 16:40:27 +0100
committerAndrei Zeliankou <zelenkov@nginx.com>2022-06-01 16:40:27 +0100
commit161230b955ba8a6a22888c21f1b067de61af78dd (patch)
tree22049dd507758ef68ce7a913b1fc9dc78de32439
parent0d5d81b2717a1707fc22020e6b27b4dea23d7595 (diff)
downloadunit-161230b955ba8a6a22888c21f1b067de61af78dd.tar.gz
unit-161230b955ba8a6a22888c21f1b067de61af78dd.tar.bz2
Tests: improved test for $request_uri variable.
-rw-r--r--test/test_variables.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_variables.py b/test/test_variables.py
index 728e86b0..71553685 100644
--- a/test/test_variables.py
+++ b/test/test_variables.py
@@ -17,7 +17,7 @@ class TestVariables(TestApplicationProto):
"5GET": [{"action": {"return": 206}}],
"GETGET": [{"action": {"return": 207}}],
"localhost": [{"action": {"return": 208}}],
- "9*?q": [{"action": {"return": 209}}],
+ "9?q#a": [{"action": {"return": 209}}],
},
},
), 'configure routes'
@@ -35,7 +35,7 @@ class TestVariables(TestApplicationProto):
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'
+ assert self.get(url='/9?q#a')['status'] == 209, 'request_uri query'
def test_variables_uri(self):
self.conf_routes("\"routes$uri\"")