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.py38
1 files changed, 17 insertions, 21 deletions
diff --git a/test/test_python_atexit.py b/test/test_python_atexit.py
index 6c1b6365..6b93367c 100644
--- a/test/test_python_atexit.py
+++ b/test/test_python_atexit.py
@@ -28,32 +28,28 @@ def application(env, start_response):
self.python_application(name, code)
- self.put('/', """
- {
- "listeners": {
- "*:7080": {
- "application": "app"
- }
- },
- "applications": {
- "app": {
- "type": "python",
- "workers": 1,
- "path": "%s",
- "module": "wsgi"
- }
+ self.conf({
+ "listeners": {
+ "*:7080": {
+ "application": "app"
+ }
+ },
+ "applications": {
+ "app": {
+ "type": "python",
+ "workers": 1,
+ "path": self.testdir + '/' + name,
+ "module": "wsgi"
}
}
- """ % (self.testdir + '/' + name))
+ })
unit.TestUnitHTTP.get()
- self.put('/', """
- {
- "listeners": {},
- "applications": {}
- }
- """)
+ self.conf({
+ "listeners": {},
+ "applications": {}
+ })
time.sleep(0.2) # wait for 'atexit' file