def testReflector(self):
uri = urllib_parse.urljoin(base, "reflector/reflector.cgi")
(response, content) = self.http.request(uri, "GET")
d = self.reflector(content)
self.assertTrue('HTTP_USER_AGENT' in d)
# NOTE: disabled because this isn't relevant to the shim.
# def testConnectionClose(self):
# uri = "http://www.google.com/"
# (response, content) = self.http.request(uri, "GET")
# for c in self.http.connections.values():
# self.assertNotEqual(None, c.sock)
# (response, content) = self.http.request(
# uri, "GET", headers={"connection": "close"})
# for c in self.http.connections.values():
# self.assertEqual(None, c.sock)
评论列表
文章目录