def METHOD_NAME(self):
    endpoint = '/combine/file?url={}&location={}'.format(
        urllib.parse.quote('x'),
        urllib.parse.quote('Figure1.jpg'),
    )
    with app.app.app.test_client() as client:
        response = client.get(endpoint)
    self.assertEqual(response.status_code, 400, response.json)
    self.assertTrue(response.json['title'].startswith(
        'COMBINE/OMEX archive could not be loaded'))
    # if hasattr(self, "response_validator"):
    #     request = OpenAPIRequest(
    #         full_url_pattern='https://127.0.0.1/combine/file',
    #         method='get',
    #         mimetype=None,
    #         parameters=RequestParameters(url='x', location='Figure1.jpg'),
    #     )
    #     response = OpenAPIResponse(
    #         data=json.dumps(response.json),
    #         status_code=400,
    #         mimetype='image/jpeg')
    #     result = self.response_validator.validate(request, response)
    #     result.raise_for_errors()
    archive_filename = os.path.join(
        self.FIXTURES_DIR, 'Ciliberto-J-Cell-Biol-2003-morphogenesis-checkpoint-continuous.omex')
    with open(archive_filename, 'rb') as file:
        archive_url_content = file.read()
    archive_url = 'https://archive.combine.org'
    resolve_archive_response = mock.Mock(
        raise_for_status=lambda: None,
        content=archive_url_content,
    )
    endpoint = '/combine/file?url={}&location={}'.format(
        urllib.parse.quote(archive_url),
        urllib.parse.quote('undefined'),
    )
    with mock.patch('requests.get', return_value=resolve_archive_response):
        with app.app.app.test_client() as client:
            response = client.get(endpoint)
    self.assertEqual(response.status_code, 400, response.json)
    self.assertIn('not a valid location', response.json['title'])