requests-mock provides a building block to stub out the HTTP requests portions
of your testing code.

WWW: https://pypi.org/project/requests-mock/
WWW: https://github.com/jamielennox/requests-mock
