'Save multiple metadata in each store and retrieve it singularly, as all assets, and after deleting all.'

@ddt.data(*MODULESTORE_SETUPS)
def test_lock_unlock_assets(self, storebuilder):

    with storebuilder.build() as (__, store):
        course = CourseFactory.create(modulestore=store)
        new_asset_loc = course.id.make_asset_key('asset', 'burnside.jpg')
        new_asset_md = self._make_asset_metadata(new_asset_loc)
        store.save_asset_metadata(new_asset_md, ModuleStoreEnum.UserID.test)
        locked_state = new_asset_md.locked
        store.set_asset_metadata_attr(new_asset_loc, 'locked', (not locked_state), ModuleStoreEnum.UserID.test)
        updated_asset_md = store.find_asset_metadata(new_asset_loc)
        self.assertIsNotNone(updated_asset_md)
        self.assertEquals(updated_asset_md.locked, (not locked_state))
        store.set_asset_metadata_attr(new_asset_loc, 'locked', locked_state, ModuleStoreEnum.UserID.test)
        reupdated_asset_md = store.find_asset_metadata(new_asset_loc)
        self.assertIsNotNone(reupdated_asset_md)
        self.assertEquals(reupdated_asset_md.locked, locked_state)
