summaryrefslogtreecommitdiffhomepage
path: root/test/test_node_application.py
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2020-10-07 23:18:43 +0100
committerAndrei Zeliankou <zelenkov@nginx.com>2020-10-07 23:18:43 +0100
commit6ec0ff35964c7805712d978625949f72ff5a63bc (patch)
treef64a1901993fbc7e6a75ca6335fbbd291c8cce56 /test/test_node_application.py
parent645683f432d742f42f2769f589fe769585fb7aa0 (diff)
downloadunit-6ec0ff35964c7805712d978625949f72ff5a63bc.tar.gz
unit-6ec0ff35964c7805712d978625949f72ff5a63bc.tar.bz2
Tests: minor fixes.
Diffstat (limited to '')
-rw-r--r--test/test_node_application.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/test_node_application.py b/test/test_node_application.py
index c2b0ed69..a0b882f3 100644
--- a/test/test_node_application.py
+++ b/test/test_node_application.py
@@ -1,8 +1,9 @@
-import pytest
import re
-from unit.applications.lang.node import TestApplicationNode
+import pytest
+
from conftest import waitforfiles
+from unit.applications.lang.node import TestApplicationNode
class TestNodeApplication(TestApplicationNode):
@@ -50,8 +51,8 @@ class TestNodeApplication(TestApplicationNode):
raw_headers = headers.pop('Request-Raw-Headers')
assert re.search(
r'^(?:Host|localhost|Content-Type|'
- 'text\/html|Custom-Header|blah|Content-Length|17|Connection|'
- 'close|,)+$',
+ r'text\/html|Custom-Header|blah|Content-Length|17|Connection|'
+ r'close|,)+$',
raw_headers,
), 'raw headers'