
Betamax records HTTP interactions and replay them allowing fast, deterministic and accurate tests and it's designed to be used with python-requests. If you are not using python-requests, you should checkout vcr.py.
Betamax comes with integrations for py.test and unittest and supports third party packages that provide extra request matchers and cassette serializers.