summaryrefslogtreecommitdiffhomepage
path: root/test/test_settings.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_settings.py
parentaeed86c6829c62359e79f239b849766efb8857a7 (diff)
downloadunit-0f725346603f4de4473d12da502104b188ac02a4.tar.gz
unit-0f725346603f4de4473d12da502104b188ac02a4.tar.bz2
Tests: style.
Diffstat (limited to 'test/test_settings.py')
-rw-r--r--test/test_settings.py20
1 files changed, 5 insertions, 15 deletions
diff --git a/test/test_settings.py b/test/test_settings.py
index a16e35e8..ea3cfb99 100644
--- a/test/test_settings.py
+++ b/test/test_settings.py
@@ -207,9 +207,7 @@ Connection: close
{"unix:" + addr: {'application': 'body_generate'}}, 'listeners'
)
- assert 'success' in self.conf(
- {'http': {'send_timeout': 1}}, 'settings'
- )
+ assert 'success' in self.conf({'http': {'send_timeout': 1}}, 'settings')
data = req(addr, data_len)
assert re.search(r'200 OK', data), 'send timeout status'
@@ -237,14 +235,10 @@ Connection: close
assert self.get()['status'] == 200, 'init'
- assert 'success' in self.conf(
- {'http': {'idle_timeout': 2}}, 'settings'
- )
+ assert 'success' in self.conf({'http': {'idle_timeout': 2}}, 'settings')
assert req()['status'] == 408, 'status idle timeout'
- assert 'success' in self.conf(
- {'http': {'idle_timeout': 7}}, 'settings'
- )
+ assert 'success' in self.conf({'http': {'idle_timeout': 7}}, 'settings')
assert req()['status'] == 200, 'status idle timeout 2'
def test_settings_idle_timeout_2(self):
@@ -259,14 +253,10 @@ Connection: close
assert self.get()['status'] == 200, 'init'
- assert 'success' in self.conf(
- {'http': {'idle_timeout': 1}}, 'settings'
- )
+ assert 'success' in self.conf({'http': {'idle_timeout': 1}}, 'settings')
assert req()['status'] == 408, 'status idle timeout'
- assert 'success' in self.conf(
- {'http': {'idle_timeout': 7}}, 'settings'
- )
+ assert 'success' in self.conf({'http': {'idle_timeout': 7}}, 'settings')
assert req()['status'] == 200, 'status idle timeout 2'
def test_settings_max_body_size(self):