'Tests cloning of a course as follows: XML -> Mongo (+ data) -> Mongo -> Split -> Split'

def test_clone_course(self):

    mongo_course1_id = self.import_and_populate_course()
    mongo_course2_id = mongo_course1_id
    with self.store.default_store(ModuleStoreEnum.Type.split):
        split_course3_id = CourseLocator(org='edx3', course='split3', run='2013_Fall')
        self.store.clone_course(mongo_course2_id, split_course3_id, self.user.id)
        self.assertCoursesEqual(mongo_course2_id, split_course3_id)
        split_course4_id = CourseLocator(org='edx4', course='split4', run='2013_Fall')
        self.store.clone_course(split_course3_id, split_course4_id, self.user.id)
        self.assertCoursesEqual(split_course3_id, split_course4_id)
