Refactor post mockup patch

* Patches did'nt tear down correctly, if different mock patches existed
* Use a partial to allow the definition of the mock_post and mock_get functions in base.py
* Unify all post mocks to a single one, allowing a 401 response