`requests-mock` provides a simple way to stub out the HTTP portions or your testing code.
https://github.com/jamielennox/requests-mock
latest