summaryrefslogtreecommitdiffhomepage
path: root/test/test_python_atexit.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_python_atexit.py')
-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()