summaryrefslogtreecommitdiffhomepage
path: root/test/test_tls_session.py
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2023-05-25 14:26:12 +0100
committerAndrei Zeliankou <zelenkov@nginx.com>2023-05-25 14:26:12 +0100
commit3e4fa1e2022970dee003bea0932ea0c10f8744ba (patch)
treed23b32b9a6e33dc57694547f1ec1427f1a19a01a /test/test_tls_session.py
parent47cdfb6f30f7d56bffb806cc860e20806ea62f50 (diff)
downloadunit-3e4fa1e2022970dee003bea0932ea0c10f8744ba.tar.gz
unit-3e4fa1e2022970dee003bea0932ea0c10f8744ba.tar.bz2
Tests: removed unused variables.
Diffstat (limited to 'test/test_tls_session.py')
-rw-r--r--test/test_tls_session.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/test_tls_session.py b/test/test_tls_session.py
index 58f11f2d..84637dea 100644
--- a/test/test_tls_session.py
+++ b/test/test_tls_session.py
@@ -19,7 +19,7 @@ class TestTLSSession(TestApplicationTLS):
prerequisites = {'modules': {'openssl': 'any'}}
@pytest.fixture(autouse=True)
- def setup_method_fixture(self, request):
+ def setup_method_fixture(self):
self.certificate()
assert 'success' in self.conf(
@@ -70,21 +70,21 @@ class TestTLSSession(TestApplicationTLS):
)
def test_tls_session(self):
- client, sess, ctx, reused = self.connect()
+ _, sess, ctx, reused = self.connect()
assert not reused, 'new connection'
- client, _, _, reused = self.connect(ctx, sess)
+ _, _, _, reused = self.connect(ctx, sess)
assert not reused, 'no cache'
assert 'success' in self.add_session(cache_size=2)
- client, sess, ctx, reused = self.connect()
+ _, sess, ctx, reused = self.connect()
assert not reused, 'new connection cache'
- client, _, _, reused = self.connect(ctx, sess)
+ _, _, _, reused = self.connect(ctx, sess)
assert reused, 'cache'
- client, _, _, reused = self.connect(ctx, sess)
+ _, _, _, reused = self.connect(ctx, sess)
assert reused, 'cache 2'
# check that at least one session of four is not reused
@@ -108,15 +108,15 @@ class TestTLSSession(TestApplicationTLS):
def test_tls_session_timeout(self):
assert 'success' in self.add_session(cache_size=5, timeout=1)
- client, sess, ctx, reused = self.connect()
+ _, sess, ctx, reused = self.connect()
assert not reused, 'new connection'
- client, _, _, reused = self.connect(ctx, sess)
+ _, _, _, reused = self.connect(ctx, sess)
assert reused, 'no timeout'
time.sleep(3)
- client, _, _, reused = self.connect(ctx, sess)
+ _, _, _, reused = self.connect(ctx, sess)
assert not reused, 'timeout'
def test_tls_session_invalid(self):