'Set up the database for testing'

def setUp(self):

    super(CommonMixedModuleStoreSetup, self).setUp()
    self.exclude_field(None, 'wiki_slug')
    self.exclude_field(None, 'xml_attributes')
    self.exclude_field(None, 'parent')
    self.ignore_asset_key('_id')
    self.ignore_asset_key('uploadDate')
    self.ignore_asset_key('content_son')
    self.ignore_asset_key('thumbnail_location')
    self.options = getattr(self, 'options', self.OPTIONS)
    self.connection = pymongo.MongoClient(host=self.HOST, port=self.PORT, tz_aware=True)
    self.connection.drop_database(self.DB)
    self.addCleanup(self.connection.drop_database, self.DB)
    self.addCleanup(self.connection.close)
    self.addTypeEqualityFunc(BlockUsageLocator, '_compare_ignore_version')
    self.addTypeEqualityFunc(CourseLocator, '_compare_ignore_version')
    self.writable_chapter_location = self.store = self.fake_location = None
    self.course_locations = {}
    self.user_id = ModuleStoreEnum.UserID.test
