def METHOD_NAME(url):
    testpackage = model.Package.get('annakarenina')
    context = {
        'model': model,
        'session': model.Session,
        'user': model.User.get('testsysadmin').name,
        'use_cache': False,
    }
    resource = p.toolkit.get_action('resource_show')(
        context, {'id': testpackage.resources[0].id})
    package = p.toolkit.get_action('package_show')(
        context, {'id': testpackage.id})
    resource['url'] = url
    p.toolkit.get_action('resource_update')(context, resource)
    testpackage = model.Package.get('annakarenina')
    assert testpackage.resources[0].url == resource['url']
    return {'resource': resource, 'package': package}