def test_pycurl_follow_false(self):
curl = CurlStub(b"result")
result = fetch("http://example.com", curl=curl,
follow=False)
self.assertEqual(result, b"result")
self.assertNotIn(pycurl.FOLLOWLOCATION, curl.options.keys())
评论列表
文章目录