Tests: added ASGI application with IPv6 address test.
This commit is contained in:
parent
47683c4704
commit
aa57254674
1 changed files with 9 additions and 0 deletions
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in a new issue