'Set up initial test data'

def setUp(self):

    super(TestIndexViewWithVerticalPositions, self).setUp()
    self.user = UserFactory()
    self.course = CourseFactory.create()
    with self.store.bulk_operations(self.course.id):
        self.chapter = ItemFactory.create(parent=self.course, category='chapter')
        self.section = ItemFactory.create(parent=self.chapter, category='sequential', display_name='Sequence')
        ItemFactory.create(parent=self.section, category='vertical', display_name='Vertical1')
        ItemFactory.create(parent=self.section, category='vertical', display_name='Vertical2')
        ItemFactory.create(parent=self.section, category='vertical', display_name='Vertical3')
    self.client.login(username=self.user, password='test')
    CourseEnrollmentFactory(user=self.user, course_id=self.course.id)
