'Test migration for real as well as testing using an email addr to id the user'

def test_user_email(self):

    call_command('migrate_to_split', str(self.course.id), str(self.user.email))
    split_store = modulestore()._get_modulestore_by_type(ModuleStoreEnum.Type.split)
    new_key = split_store.make_course_key(self.course.id.org, self.course.id.course, self.course.id.run)
    self.assertTrue(split_store.has_course(new_key), 'Could    not    find    course')
