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

Method test_valid_get_response

Lib/test/test_docxmlrpc.py:91–99  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

89 self.serv.server_close()
90
91 def test_valid_get_response(self):
92 self.client.request("GET", "/")
93 response = self.client.getresponse()
94
95 self.assertEqual(response.status, 200)
96 self.assertEqual(response.getheader("Content-type"), "text/html; charset=UTF-8")
97
98 # Server raises an exception if we don't start to read the data
99 response.read()
100
101 def test_get_css(self):
102 self.client.request("GET", "/pydoc.css")

Callers

nothing calls this directly

Calls 5

getheaderMethod · 0.80
requestMethod · 0.45
getresponseMethod · 0.45
assertEqualMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected