MCPcopy Index your code
hub / github.com/python/cpython / test_header

Method test_header

Lib/test/test_urllibnet.py:185–189  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

183 self.assertTrue(f.read(), "reading from temporary file failed")
184
185 def test_header(self):
186 # Make sure header returned as 2nd value from urlretrieve is good.
187 with self.urlretrieve(self.logo) as (file_location, info):
188 self.assertIsInstance(info, email.message.Message,
189 "info is not an instance of email.message.Message")
190
191 logo = "http://www.pythontest.net/"
192

Callers

nothing calls this directly

Calls 2

urlretrieveMethod · 0.95
assertIsInstanceMethod · 0.80

Tested by

no test coverage detected