diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2023-05-25 14:26:12 +0100 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2023-05-25 14:26:12 +0100 |
commit | 3e4fa1e2022970dee003bea0932ea0c10f8744ba (patch) | |
tree | d23b32b9a6e33dc57694547f1ec1427f1a19a01a /test/test_tls.py | |
parent | 47cdfb6f30f7d56bffb806cc860e20806ea62f50 (diff) | |
download | unit-3e4fa1e2022970dee003bea0932ea0c10f8744ba.tar.gz unit-3e4fa1e2022970dee003bea0932ea0c10f8744ba.tar.bz2 |
Tests: removed unused variables.
Diffstat (limited to 'test/test_tls.py')
-rw-r--r-- | test/test_tls.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_tls.py b/test/test_tls.py index 06c38d0b..a4dc8ef5 100644 --- a/test/test_tls.py +++ b/test/test_tls.py @@ -28,7 +28,7 @@ class TestTLS(TestApplicationTLS): {"pass": f"applications/{application}"}, f'listeners/*:{port}' ) - def req(self, name='localhost', subject=None, x509=False): + def req(self, name='localhost', subject=None): subj = subject if subject is not None else f'/CN={name}/' subprocess.check_output( @@ -426,7 +426,7 @@ basicConstraints = critical,CA:TRUE""" assert self.get_ssl()['status'] == 200, 'certificate chain long' - def test_tls_certificate_empty_cn(self, temp_dir): + def test_tls_certificate_empty_cn(self): self.certificate('root', False) self.req(subject='/') @@ -442,7 +442,7 @@ basicConstraints = critical,CA:TRUE""" assert cert['chain'][0]['subject'] == {}, 'empty subject' assert cert['chain'][0]['issuer']['common_name'] == 'root', 'issuer' - def test_tls_certificate_empty_cn_san(self, temp_dir): + def test_tls_certificate_empty_cn_san(self): self.certificate('root', False) self.openssl_conf( @@ -535,7 +535,7 @@ basicConstraints = critical,CA:TRUE""" } ), 'load application configuration' - (resp, sock) = self.get_ssl(start=True) + (_, sock) = self.get_ssl(start=True) time.sleep(5) |