
Requests-mock provides a building block to stub out the http requests_ portions of your testing code. everything in requests_ eventually goes through an adapter to do the transport work. requests-mock creates a custom adatper that allows you to predefine responses when certain uris are called. there are then a number of methods provided to get the adapter used.
this package contains the documentation.