summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_urllib_response.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_urllib_response.py')
-rw-r--r--Lib/test/test_urllib_response.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_urllib_response.py b/Lib/test/test_urllib_response.py
index 0eb5942..73d2ef0 100644
--- a/Lib/test/test_urllib_response.py
+++ b/Lib/test/test_urllib_response.py
@@ -42,6 +42,7 @@ class TestResponse(unittest.TestCase):
def test_addinfo(self):
info = urllib.response.addinfo(self.fp, self.test_headers)
self.assertEqual(info.info(), self.test_headers)
+ self.assertEqual(info.headers, self.test_headers)
def test_addinfourl(self):
url = "http://www.python.org"
@@ -51,6 +52,9 @@ class TestResponse(unittest.TestCase):
self.assertEqual(infourl.info(), self.test_headers)
self.assertEqual(infourl.geturl(), url)
self.assertEqual(infourl.getcode(), code)
+ self.assertEqual(infourl.headers, self.test_headers)
+ self.assertEqual(infourl.url, url)
+ self.assertEqual(infourl.status, code)
def tearDown(self):
self.sock.close()