296

HTTPretty is a Python package for writing tests for code that interacts with remote web services. You write expectations for requests the test code should make and the responses, and the tests run without accessing real networks at all. Works particularly nicely with JSON-based protocols.