summaryrefslogtreecommitdiffhomepage
path: root/test/test_proxy_chunked.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_proxy_chunked.py
parentaeed86c6829c62359e79f239b849766efb8857a7 (diff)
downloadunit-0f725346603f4de4473d12da502104b188ac02a4.tar.gz
unit-0f725346603f4de4473d12da502104b188ac02a4.tar.bz2
Tests: style.
Diffstat (limited to '')
-rw-r--r--test/test_proxy_chunked.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/test/test_proxy_chunked.py b/test/test_proxy_chunked.py
index 73d94332..f024eaf5 100644
--- a/test/test_proxy_chunked.py
+++ b/test/test_proxy_chunked.py
@@ -90,12 +90,13 @@ class TestProxyChunked(TestApplicationPython):
assert 'success' in self.conf(
{
- "listeners": {"*:7080": {"pass": "routes"},},
+ "listeners": {
+ "*:7080": {"pass": "routes"},
+ },
"routes": [
{
"action": {
- "proxy": "http://127.0.0.1:"
- + str(self.SERVER_PORT)
+ "proxy": "http://127.0.0.1:" + str(self.SERVER_PORT)
}
}
],
@@ -166,9 +167,7 @@ class TestProxyChunked(TestApplicationPython):
assert (
self.get_http10(
- body=self.chunks(
- [('1', hex(i % 16)[2:]) for i in range(4096)]
- ),
+ body=self.chunks([('1', hex(i % 16)[2:]) for i in range(4096)]),
)['body']
== part * 256
)
@@ -210,8 +209,7 @@ class TestProxyChunked(TestApplicationPython):
assert resp['body'][-5:] != '0\r\n\r\n', 'no zero chunk'
assert (
- self.get_http10(body='\r\n\r\n80000000\r\nA X 100')['status']
- == 200
+ self.get_http10(body='\r\n\r\n80000000\r\nA X 100')['status'] == 200
)
assert (
self.get_http10(body='\r\n\r\n10000000000000000\r\nA X 100')[