mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-10716: Migrating pydoc to html5. (GH-28651)
This commit is contained in:
parent
a98b273ce4
commit
c91b6f57f3
7 changed files with 346 additions and 251 deletions
|
@ -90,7 +90,17 @@ class DocXMLRPCHTTPGETServer(unittest.TestCase):
|
|||
response = self.client.getresponse()
|
||||
|
||||
self.assertEqual(response.status, 200)
|
||||
self.assertEqual(response.getheader("Content-type"), "text/html")
|
||||
self.assertEqual(response.getheader("Content-type"), "text/html; charset=UTF-8")
|
||||
|
||||
# Server raises an exception if we don't start to read the data
|
||||
response.read()
|
||||
|
||||
def test_get_css(self):
|
||||
self.client.request("GET", "/pydoc.css")
|
||||
response = self.client.getresponse()
|
||||
|
||||
self.assertEqual(response.status, 200)
|
||||
self.assertEqual(response.getheader("Content-type"), "text/css; charset=UTF-8")
|
||||
|
||||
# Server raises an exception if we don't start to read the data
|
||||
response.read()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue