def METHOD_NAME():
    client = RESTAPIClient(_REMOTE)
    def callback(request, uri, response_headers):
        assert json.loads(request.body) == {"username": "someuser", "password": "somepassword"}
        return [400, response_headers, json.dumps({"error": "Invalid username or password"})]
    httpretty.register_uri(httpretty.HTTPretty.POST, _ENDPOINT + "/refresh_token", body=callback)
    with pytest.raises(AuthAPIError) as e:
        client.get_refresh_token("someuser", "somepassword")
    assert isinstance(e.value.__cause__, HTTPError)
    assert "400" in str(e.value.__cause__)