Intercept socket connection to wsgi applications for testing
Python Makefile
Latest commit 1a3ba19 Jul 3, 2016 @cdent Release 1.3.1
- docstring fix in example from Cito



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:

  • urllib2
  • httplib
  • httplib2
  • requests
  • urllib3

In Python 3:

  • urllib.request
  • http.client
  • httplib2
  • requests
  • urllib3

If you are using Python 2 and need support for a different HTTP client, require a version of wsgi_intercept<0.6.