'Set up the simplest course possible, then set up and enroll our fake user in the course.'

def setUp(self):

    super(TestWelcomeMessageView, self).setUp()
    with self.store.default_store(ModuleStoreEnum.Type.split):
        self.course = CourseFactory.create()
        with self.store.bulk_operations(self.course.id):
            chapter = ItemFactory.create(category='chapter', parent_location=self.course.location)
            section = ItemFactory.create(category='sequential', parent_location=chapter.location)
            ItemFactory.create(category='vertical', parent_location=section.location)
    self.user = UserFactory(password=TEST_PASSWORD)
    CourseEnrollment.enroll(self.user, self.course.id)
    self.client.login(username=self.user.username, password=TEST_PASSWORD)
