diff options
Diffstat (limited to 'test/test_tcp.py')
-rw-r--r-- | test/test_tcp.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_tcp.py b/test/test_tcp.py index 081c83a7..0cecaaa2 100644 --- a/test/test_tcp.py +++ b/test/test_tcp.py @@ -429,6 +429,11 @@ class TestALPN(test.ServerTestBase): c.convert_to_ssl(alpn_protos=["foobar"]) assert c.get_alpn_proto_negotiated() == "foobar" + def test_no_alpn(self): + c = tcp.TCPClient(("127.0.0.1", self.port)) + c.connect() + assert c.get_alpn_proto_negotiated() == None + else: def test_none_alpn(self): c = tcp.TCPClient(("127.0.0.1", self.port)) |