summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_httplib.py
diff options
context:
space:
mode:
authorMatt Houglum <houglum@google.com>2019-04-04 04:36:47 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2019-04-04 04:36:47 (GMT)
commit461c416dd78a98f2bba7f323af8c9738e060b6f2 (patch)
tree1b9ac68c9591bcdd8c1361fa12ba84278cfc743f /Lib/test/test_httplib.py
parentcb0748d3939c31168ab5d3b80e3677494497d5e3 (diff)
downloadcpython-461c416dd78a98f2bba7f323af8c9738e060b6f2.zip
cpython-461c416dd78a98f2bba7f323af8c9738e060b6f2.tar.gz
cpython-461c416dd78a98f2bba7f323af8c9738e060b6f2.tar.bz2
bpo-36522: Print all values for headers with multiple values. (GH-12681)
Diffstat (limited to 'Lib/test/test_httplib.py')
-rw-r--r--Lib/test/test_httplib.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_httplib.py b/Lib/test/test_httplib.py
index f816eac..4755f8b 100644
--- a/Lib/test/test_httplib.py
+++ b/Lib/test/test_httplib.py
@@ -348,7 +348,8 @@ class HeaderTests(TestCase):
body = (
b'HTTP/1.1 200 OK\r\n'
b'First: val\r\n'
- b'Second: val\r\n'
+ b'Second: val1\r\n'
+ b'Second: val2\r\n'
)
sock = FakeSocket(body)
resp = client.HTTPResponse(sock, debuglevel=1)
@@ -357,7 +358,8 @@ class HeaderTests(TestCase):
lines = output.getvalue().splitlines()
self.assertEqual(lines[0], "reply: 'HTTP/1.1 200 OK\\r\\n'")
self.assertEqual(lines[1], "header: First: val")
- self.assertEqual(lines[2], "header: Second: val")
+ self.assertEqual(lines[2], "header: Second: val1")
+ self.assertEqual(lines[3], "header: Second: val2")
class TransferEncodingTest(TestCase):