def METHOD_NAME(log_in_as_scientist, app_client):
    with requests_mock.Mocker() as requests_mocker:
        requests_mocker.register_uri(
            'GET', 'http://export.arxiv.org/oai2',
            text=pkg_resources.resource_string(
                __name__, os.path.join('fixtures', 'is-malformed.xml')),
        )
        response = app_client.get('/arxiv/search?arxiv=is-malformed')
        assert response.status_code == 422
        result = json.loads(response.data)
        assert result['query'] == {}
        assert result['source'] == 'arxiv'
        assert result['status'] == 'malformed'