d34e64f7640fb6e8f22ed74d05e19d8aae0dadc3
Otherwise monkeypatching get confused and will not work and the tests will fail. An effort was made to use the six http_client always (both in tests and the interceptor) but this led to infinite recursion, so going for the lame fix here. The functionality has always worked (as long as six wasn't involved) this is just getting things working in tests.
wsgi-intercept
Documentation is available on Read The Docs.
What is it?
wsgi_intercept installs a WSGI application in place of a real host for testing while still preserving HTTP semantics. See the PyPI page page for more details. It works by intercepting the connection handling in http client libraries.
Supported Libraries
For Python 2.7 the following libraries are supported:
urllib2httplibhttplib2requestsurllib3
In Python 3:
urllib.requesthttp.clienthttplib2requestsurllib3
If you are using Python 2 and need support for a different HTTP
client, require a version of wsgi_intercept<0.6.
Description
Languages
Python
98.6%
Makefile
1.4%
