def test_send_is_post_to_endpoint_url(self, Session, session_instance):
        under_test = HttpPostTransport("uri")

        payload = {"key": "value"}
        under_test.send(json.dumps(payload))

        session_instance.post.assert_called_with("uri", data=JsonMatching(payload))
    def test_unwraps_response_objects(self, Session, session_instance):
        under_test = HttpPostTransport("uri")

        session_instance.post.return_value = _success_response_with_body()

        result = under_test.send("payload")
        assert result == "some-response-from-server"