The test suite is moving from the httpbin pattern (which hits the
network) to depending on the request.prepare method (which doesn't).
Here's a start ...
self.assertEqual(request.url,
"http://example.com/path?key=value&a=b#fragment")
- def test_HTTP_200_OK_GET(self):
- r = requests.get(httpbin('get'))
- self.assertEqual(r.status_code, 200)
-
def test_HTTP_200_OK_GET_ALTERNATIVE(self):
r = requests.Request('GET', httpbin('get'))
s = requests.Session()