Tests: minor fixes.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user