summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--test/test_asgi_application.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test_asgi_application.py b/test/test_asgi_application.py
index 60fcffc1..534bd3c0 100644
--- a/test/test_asgi_application.py
+++ b/test/test_asgi_application.py
@@ -60,6 +60,16 @@ custom-header: BLAH
}, 'headers'
assert resp['body'] == body, 'body'
+ def test_asgi_application_unix(self, temp_dir):
+ self.load('empty')
+
+ addr = temp_dir + '/sock'
+ assert 'success' in self.conf(
+ {"unix:" + addr: {"pass": "applications/empty"}}, 'listeners'
+ )
+
+ assert self.get(sock_type='unix', addr=addr)['status'] == 200
+
def test_asgi_application_query_string(self):
self.load('query_string')