summaryrefslogtreecommitdiffhomepage
path: root/test/test_http_header.py
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2019-05-30 16:47:39 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2019-05-30 16:47:39 +0300
commit67772cd3e9905820ef090b0ae52b571f542548f5 (patch)
tree6fe5d5caf1caf05ebe4621c203b2ba181ba25a21 /test/test_http_header.py
parent90c5d3f5c0ad42ccdb764684f721b511131e0782 (diff)
downloadunit-67772cd3e9905820ef090b0ae52b571f542548f5.tar.gz
unit-67772cd3e9905820ef090b0ae52b571f542548f5.tar.bz2
Tests: fixed tests without "Host" header.
Diffstat (limited to '')
-rw-r--r--test/test_http_header.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/test_http_header.py b/test/test_http_header.py
index f4449ea0..603f6f0f 100644
--- a/test/test_http_header.py
+++ b/test/test_http_header.py
@@ -1,3 +1,4 @@
+import unittest
from unit.applications.lang.python import TestApplicationPython
@@ -296,15 +297,13 @@ Connection: close
'Content-Length multiple fields',
)
+ @unittest.skip('not yet')
def test_http_header_host_absent(self):
self.load('host')
resp = self.get(headers={'Connection': 'close'})
- self.assertEqual(resp['status'], 200, 'Host absent status')
- self.assertNotEqual(
- resp['headers']['X-Server-Name'], '', 'Host absent SERVER_NAME'
- )
+ self.assertEqual(resp['status'], 400, 'Host absent status')
def test_http_header_host_empty(self):
self.load('host')