summaryrefslogtreecommitdiffhomepage
path: root/test/test_perl_application.py
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2022-01-31 23:10:30 +0000
committerAndrei Zeliankou <zelenkov@nginx.com>2022-01-31 23:10:30 +0000
commite53ce40c5854d95722cdfc198626fcd5aecbe563 (patch)
treefe3be3f5d9685c29424e84f0f08b9459ea5de37b /test/test_perl_application.py
parent485886d8f9a665e9c416a98dd00e5c836b6bf27c (diff)
downloadunit-e53ce40c5854d95722cdfc198626fcd5aecbe563.tar.gz
unit-e53ce40c5854d95722cdfc198626fcd5aecbe563.tar.bz2
Tests: removed TestApplicationTLS.get_server_certificate().
distutils.version is replaced by packaging.version. Also minor style fixes.
Diffstat (limited to 'test/test_perl_application.py')
-rw-r--r--test/test_perl_application.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/test/test_perl_application.py b/test/test_perl_application.py
index 6803ff76..32d2b703 100644
--- a/test/test_perl_application.py
+++ b/test/test_perl_application.py
@@ -103,10 +103,7 @@ class TestPerlApplication(TestApplicationPerl):
def test_perl_application_input_buffered_read(self):
self.load('input_buffered_read')
- assert (
- self.post(body='012345')['body'] == '012345'
- ), 'buffered read #1'
-
+ assert self.post(body='012345')['body'] == '012345', 'buffered read #1'
assert (
self.post(body='9876543210')['body'] == '9876543210'
), 'buffered read #2'
@@ -114,10 +111,7 @@ class TestPerlApplication(TestApplicationPerl):
def test_perl_application_input_close(self):
self.load('input_close')
- assert (
- self.post(body='012345')['body'] == '012345'
- ), 'input close #1'
-
+ assert self.post(body='012345')['body'] == '012345', 'input close #1'
assert (
self.post(body='9876543210')['body'] == '9876543210'
), 'input close #2'