def METHOD_NAME(self, app):
    responses.add_passthru(config['solr_url'])
    self.resource = helpers.call_action(
        'resource_patch',
        {},
        id=self.resource['id'],
        url='http:invalid_url'
    )
    proxied_url = proxied_url = proxy.get_proxified_resource_url({
        'package': self.dataset,
        'resource': self.resource
    })
    result = app.get(proxied_url)
    assert result.status_code == 409
    assert b'Invalid URL' in result.data