'Test importing to a different course id'

def test_locator_string(self):

    call_command('migrate_to_split', str(self.course.id), str(self.user.id), 'org.dept', 'name', 'run')
    split_store = modulestore()._get_modulestore_by_type(ModuleStoreEnum.Type.split)
    locator = split_store.make_course_key('org.dept', 'name', 'run')
    course_from_split = split_store.get_course(locator)
    self.assertIsNotNone(course_from_split)
    mongo_store = modulestore()._get_modulestore_by_type(ModuleStoreEnum.Type.mongo)
    mongo_locator = mongo_store.make_course_key(self.course.id.org, self.course.id.course, self.course.id.run)
    course_from_mongo = mongo_store.get_course(mongo_locator)
    self.assertIsNotNone(course_from_mongo)
    split_locator = split_store.make_course_key(self.course.id.org, self.course.id.course, self.course.id.run)
    with self.assertRaises(ItemNotFoundError):
        mongo_store.get_course(split_locator)
