'Add an asset\'s metadata, then add it again.'

@ddt.data(*MODULESTORE_SETUPS)
def test_add_same_asset_twice(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)
        self.assertEquals(len(store.get_all_asset_metadata(course.id, 'asset')), 1)
        store.save_asset_metadata(new_asset_md, ModuleStoreEnum.UserID.test)
        self.assertEquals(len(store.get_all_asset_metadata(course.id, 'asset')), 1)
