diff options
author | Alejandro Colomar <alx.manpages@gmail.com> | 2022-03-22 01:41:16 +0100 |
---|---|---|
committer | Alejandro Colomar <alx.manpages@gmail.com> | 2022-04-28 20:40:01 +0200 |
commit | 6d017dfbe473f6770c4eacce8ef0c957719c6b5a (patch) | |
tree | 6197c7683addf394780cafc007ca447a9c0e4e44 /test/test_return.py | |
parent | 6fb7777ce73ba529327d307ca0722e66a7cb9262 (diff) | |
download | unit-6d017dfbe473f6770c4eacce8ef0c957719c6b5a.tar.gz unit-6d017dfbe473f6770c4eacce8ef0c957719c6b5a.tar.bz2 |
Tests: Changed tests to accept variables in "location".
Diffstat (limited to 'test/test_return.py')
-rw-r--r-- | test/test_return.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_return.py b/test/test_return.py index 2f7b7ae4..31d055ce 100644 --- a/test/test_return.py +++ b/test/test_return.py @@ -83,7 +83,7 @@ Connection: close assert resp['body'] == '' def test_return_location(self): - reserved = ":/?#[]@!$&'()*+,;=" + reserved = ":/?#[]@!&'()*+,;=" unreserved = ( "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" "0123456789-._~" @@ -107,15 +107,15 @@ Connection: close check_location(reserved) # After first "?" all other "?" encoded. - check_location("/?" + reserved, "/?:/%3F#[]@!$&'()*+,;=") + check_location("/?" + reserved, "/?:/%3F#[]@!&'()*+,;=") check_location("???", "?%3F%3F") # After first "#" all other "?" or "#" encoded. - check_location("/#" + reserved, "/#:/%3F%23[]@!$&'()*+,;=") + check_location("/#" + reserved, "/#:/%3F%23[]@!&'()*+,;=") check_location("##?#?", "#%23%3F%23%3F") # After first "?" next "#" not encoded. - check_location("/?#" + reserved, "/?#:/%3F%23[]@!$&'()*+,;=") + check_location("/?#" + reserved, "/?#:/%3F%23[]@!&'()*+,;=") check_location("??##", "?%3F#%23") check_location("/?##?", "/?#%23%3F") |