Tests: minor fixes.

This commit is contained in:
Andrei Zeliankou
2020-10-07 23:18:43 +01:00
parent 645683f432
commit 6ec0ff3596
46 changed files with 128 additions and 98 deletions

View File

@@ -108,7 +108,7 @@ class TestHTTPHeader(TestApplicationPython):
resp = self.get(
headers={
'Host': 'localhost',
'Custom-Header': '(),/:;<=>?@[\]{}\t !#$%&\'*+-.^_`|~',
'Custom-Header': r'(),/:;<=>?@[\]{}\t !#$%&\'*+-.^_`|~',
'Connection': 'close',
}
)
@@ -116,7 +116,7 @@ class TestHTTPHeader(TestApplicationPython):
assert resp['status'] == 200, 'value chars status'
assert (
resp['headers']['Custom-Header']
== '(),/:;<=>?@[\]{}\t !#$%&\'*+-.^_`|~'
== r'(),/:;<=>?@[\]{}\t !#$%&\'*+-.^_`|~'
), 'value chars custom header'
def test_http_header_value_chars_edge(self):