summaryrefslogtreecommitdiffhomepage
path: root/test/test_tls_sni.py
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2022-04-11 21:05:14 +0100
committerAndrei Zeliankou <zelenkov@nginx.com>2022-04-11 21:05:14 +0100
commit0f725346603f4de4473d12da502104b188ac02a4 (patch)
tree7f8254a816965d49c4d6d98da34f00c81894f7e8 /test/test_tls_sni.py
parentaeed86c6829c62359e79f239b849766efb8857a7 (diff)
downloadunit-0f725346603f4de4473d12da502104b188ac02a4.tar.gz
unit-0f725346603f4de4473d12da502104b188ac02a4.tar.bz2
Tests: style.
Diffstat (limited to 'test/test_tls_sni.py')
-rw-r--r--test/test_tls_sni.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/test_tls_sni.py b/test/test_tls_sni.py
index d5f205cf..dbd5d900 100644
--- a/test/test_tls_sni.py
+++ b/test/test_tls_sni.py
@@ -178,7 +178,8 @@ basicConstraints = critical,CA:TRUE"""
self.add_tls(["localhost.com", "example.com"])
resp, sock = self.get_ssl(
- headers={'Content-Length': '0', 'Connection': 'close'}, start=True,
+ headers={'Content-Length': '0', 'Connection': 'close'},
+ start=True,
)
assert resp['status'] == 200
assert (
@@ -272,9 +273,7 @@ basicConstraints = critical,CA:TRUE"""
)
assert resp['status'] == 200
- assert (
- sock.getpeercert()['subjectAltName'][0][1] == 'alt.localhost.com'
- )
+ assert sock.getpeercert()['subjectAltName'][0][1] == 'alt.localhost.com'
def test_tls_sni_invalid(self):
self.config_bundles({"localhost": {"subj": "subj1", "alt_names": ''}})