summaryrefslogtreecommitdiffhomepage
path: root/test/test_python_keepalive.py
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2018-04-02 17:03:41 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2018-04-02 17:03:41 +0300
commita01a98ce36dd47c1be1df37470cac1656efac31e (patch)
treea2b962d568e14562b9274d142b239eedc6eae1df /test/test_python_keepalive.py
parentefb71121b98c4dfded212e8b6fe33873cfd83376 (diff)
downloadunit-a01a98ce36dd47c1be1df37470cac1656efac31e.tar.gz
unit-a01a98ce36dd47c1be1df37470cac1656efac31e.tar.bz2
Tests: more Python tests.
Diffstat (limited to 'test/test_python_keepalive.py')
-rw-r--r--test/test_python_keepalive.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/test/test_python_keepalive.py b/test/test_python_keepalive.py
deleted file mode 100644
index 0472a15b..00000000
--- a/test/test_python_keepalive.py
+++ /dev/null
@@ -1,29 +0,0 @@
-import unittest
-import unit
-
-class TestUnitPythonKeepalive(unit.TestUnitApplicationPython):
-
- def setUpClass():
- unit.TestUnit().check_modules('python')
-
- def test_python_keepalive_body(self):
- self.load('mirror')
-
- (resp, sock) = self.post(headers={
- 'Connection': 'keep-alive',
- 'Content-Type': 'text/html',
- 'Host': 'localhost'
- }, start=True, body='0123456789' * 500)
-
- self.assertEqual(resp['body'], '0123456789' * 500, 'keep-alive 1')
-
- resp = self.post(headers={
- 'Connection': 'close',
- 'Content-Type': 'text/html',
- 'Host': 'localhost'
- }, sock=sock, body='0123456789')
-
- self.assertEqual(resp['body'], '0123456789', 'keep-alive 2')
-
-if __name__ == '__main__':
- unittest.main()