move requests mocking helpers here from bridgy

cc @notenoughneon. you should be able to use self.expect_requests_post() in a unit test now to test f0f0de795e319f4a863305a3ecc1155528274c90.