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

Method test_close

Lib/test/test_urllib.py:150–153  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

148 "did not return the expected text")
149
150 def test_close(self):
151 # Test close() by calling it here and then having it be called again
152 # by the tearDown() method for the test
153 self.returned_obj.close()
154
155 def test_headers(self):
156 self.assertIsInstance(self.returned_obj.headers, email.message.Message)

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected