'Set up module store testing capabilities and initialize test courses.'

def setUp(self):

    super(CourseMetadataUtilsTestCase, self).setUp()
    mongo_builder = MongoModulestoreBuilder()
    split_builder = VersioningModulestoreBuilder()
    mixed_builder = MixedModulestoreBuilder([('mongo', mongo_builder), ('split', split_builder)])
    with mixed_builder.build_without_contentstore() as (__, mixed_store):
        with mixed_store.default_store('mongo'):
            self.demo_course = mixed_store.create_course(org='edX', course='DemoX.1', run='Fall_2014', user_id=(-3), fields={'start': _LAST_MONTH, 'end': _LAST_WEEK})
        with mixed_store.default_store('split'):
            self.html_course = mixed_store.create_course(org='UniversityX', course='CS-203', run='Y2096', user_id=(-3), fields={'start': _NEXT_WEEK, 'display_name': 'Intro    to    <html>'})
