summaryrefslogtreecommitdiffhomepage
path: root/test/test_python_atexit.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_atexit.py
parentefb71121b98c4dfded212e8b6fe33873cfd83376 (diff)
downloadunit-a01a98ce36dd47c1be1df37470cac1656efac31e.tar.gz
unit-a01a98ce36dd47c1be1df37470cac1656efac31e.tar.bz2
Tests: more Python tests.
Diffstat (limited to '')
-rw-r--r--test/test_python_atexit.py31
1 files changed, 0 insertions, 31 deletions
diff --git a/test/test_python_atexit.py b/test/test_python_atexit.py
deleted file mode 100644
index a115a192..00000000
--- a/test/test_python_atexit.py
+++ /dev/null
@@ -1,31 +0,0 @@
-import os
-import time
-import unittest
-import unit
-
-class TestUnitPythonAtExit(unit.TestUnitApplicationPython):
-
- def setUpClass():
- unit.TestUnit().check_modules('python')
-
- def test_python_atexit(self):
- self.load('atexit')
-
- self.get(headers={
- 'Host': 'localhost',
- 'Test-Dir': self.testdir,
- 'Connection': 'close'
- })
-
- self.conf({
- "listeners": {},
- "applications": {}
- })
-
- time.sleep(0.2) # wait for 'atexit' file
-
- self.assertEqual(os.path.exists(self.testdir + '/atexit'), True,
- 'python atexit')
-
-if __name__ == '__main__':
- unittest.main()