def METHOD_NAME(self, get_shape_info_as_json_mock):
    get_shape_info_as_json_mock.return_value = GEOPREVIEW_RESPONSE
    context = {'model': model, 'session': model.Session, 'user': SYSADMIN_USER}
    resource_dict1, resource_dict2 = self._create_2_resources(context)
    assert get_shape_info_as_json_mock.call_count == 2
    resource_dict2['name'] = 'hdx_test_modified'
    try:
        resource_dict2_modified = _get_action('resource_update')(context, resource_dict2)
        assert resource_dict2_modified['name'] == resource_dict2['name']
    except ValidationError as e:
        assert False
    assert get_shape_info_as_json_mock.call_count == 3