bpo-10716: Migrating pydoc to html5. (GH-28651)

This commit is contained in:
Julien Palard 2021-10-09 09:36:50 +02:00 committed by GitHub
parent a98b273ce4
commit c91b6f57f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 346 additions and 251 deletions

View file

@ -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()