diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2023-05-19 18:27:07 +0100 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2023-05-19 18:27:07 +0100 |
commit | aa57254674e53f4e8c3e29fb95df98b4b4a8f105 (patch) | |
tree | d5f7a3749afaa4f41cc7081533c72caa42274bf3 /test | |
parent | 47683c4704572bbe0efb3b989b35a3912b65ac83 (diff) | |
download | unit-aa57254674e53f4e8c3e29fb95df98b4b4a8f105.tar.gz unit-aa57254674e53f4e8c3e29fb95df98b4b4a8f105.tar.bz2 |
Tests: added ASGI application with IPv6 address test.
Diffstat (limited to 'test')
-rw-r--r-- | test/test_asgi_application.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test_asgi_application.py b/test/test_asgi_application.py index 5ce82cb2..fb5e1742 100644 --- a/test/test_asgi_application.py +++ b/test/test_asgi_application.py @@ -59,6 +59,15 @@ custom-header: BLAH }, 'headers' assert resp['body'] == body, 'body' + def test_asgi_application_ipv6(self, temp_dir): + self.load('empty') + + assert 'success' in self.conf( + {"[::1]:7080": {"pass": "applications/empty"}}, 'listeners' + ) + + assert self.get(sock_type='ipv6')['status'] == 200 + def test_asgi_application_unix(self, temp_dir): self.load('empty') |