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

Method test_get_css

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

Source from the content-addressed store, hash-verified

99 response.read()
100
101 def test_get_css(self):
102 self.client.request("GET", "/pydoc.css")
103 response = self.client.getresponse()
104
105 self.assertEqual(response.status, 200)
106 self.assertEqual(response.getheader("Content-type"), "text/css; charset=UTF-8")
107
108 # Server raises an exception if we don't start to read the data
109 response.read()
110
111 def test_invalid_get_response(self):
112 self.client.request("GET", "/spam")

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