Commit 88006064 authored by Denis Bilenko's avatar Denis Bilenko

wsgi_test.py: use slightly less verbose API

parent 9b9a9ab1
......@@ -372,7 +372,7 @@ class TestChunkedApp(TestCase):
fd.write('GET / HTTP/1.1\r\nHost: localhost\r\nConnection: close\r\n\r\n')
response = read_http(fd, body=self.body())
if server_implements_chunked:
self.assertEqual(response.headers.get('Transfer-Encoding'), 'chunked')
response.assertHeader('Transfer-Encoding', 'chunked')
self.assertEqual(response.chunks, self.chunks)
def test_no_chunked_http_1_0(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment