def METHOD_NAME(self, token_method, http_session, token_response):
    http_session.send.return_value = factories.requests.Response(
        status_code=200, json_data=token_response
    )
    token = token_method("code")
    assert token == token_response["access_token"]