diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2020-10-07 23:18:43 +0100 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2020-10-07 23:18:43 +0100 |
commit | 6ec0ff35964c7805712d978625949f72ff5a63bc (patch) | |
tree | f64a1901993fbc7e6a75ca6335fbbd291c8cce56 /test/test_proxy.py | |
parent | 645683f432d742f42f2769f589fe769585fb7aa0 (diff) | |
download | unit-6ec0ff35964c7805712d978625949f72ff5a63bc.tar.gz unit-6ec0ff35964c7805712d978625949f72ff5a63bc.tar.bz2 |
Tests: minor fixes.
Diffstat (limited to 'test/test_proxy.py')
-rw-r--r-- | test/test_proxy.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/test_proxy.py b/test/test_proxy.py index 1476670c..d02c96a7 100644 --- a/test/test_proxy.py +++ b/test/test_proxy.py @@ -1,10 +1,12 @@ -import pytest import re import socket import time +import pytest + +from conftest import option +from conftest import skip_alert from unit.applications.lang.python import TestApplicationPython -from conftest import option, skip_alert class TestProxy(TestApplicationPython): @@ -215,7 +217,7 @@ Content-Length: 10 == header_value ), 'custom header' - header_value = '(),/:;<=>?@[\]{}\t !#$%&\'*+-.^_`|~' + header_value = r'(),/:;<=>?@[\]{}\t !#$%&\'*+-.^_`|~' assert ( self.get_http10( headers={'Host': 'localhost', 'Custom-Header': header_value} |