I’ve released a python stub webserver, described in an earlier blog post, on pypi. The features include support for any method (i.e. PUT, POST, DELETE, GET, RHUBARB …), handles chunked encoding, and supports capturing data passed for later assertions.
Because it’s on pypi, you can install using:-
pip install stubserver
The verification model is very simplistic, each registered expectation is only expected to occur once. To get more details, please refer to the documentation.