'Setup contentstore w/ proper overriding of deprecated.'

def set_up_assets(self, deprecated):

    self.contentstore = MongoContentStore(HOST, DB, port=PORT)
    self.addCleanup(self.contentstore._drop_database)
    AssetLocator.deprecated = deprecated
    CourseLocator.deprecated = deprecated
    self.course1_key = CourseLocator('test', 'asset_test', '2014_07')
    self.course2_key = CourseLocator('test', 'asset_test2', '2014_07')
    self.course1_files = ['contains.sh', 'picture1.jpg', 'picture2.jpg']
    self.course2_files = ['picture1.jpg', 'picture3.jpg', 'door_2.ogg']
    def load_assets(course_key, files):
        locked = False
        for filename in files:
            asset_key = course_key.make_asset_key('asset', filename)
            self.save_asset(filename, asset_key, filename, locked)
            locked = (not locked)
    load_assets(self.course1_key, self.course1_files)
    load_assets(self.course2_key, self.course2_files)
