def test_split_asset_name(self): parent, asset_id = _cloud_api_utils.split_asset_name( 'projects/earthengine-legacy/assets/users/path/to/asset') self.assertEqual('projects/earthengine-legacy', parent) self.assertEqual('users/path/to/asset', asset_id)