'Preparation for the test execution'

def setUp(self):

    super(StructuredTagsAsideTestCase, self).setUp()
    self.aside_name = 'tagging_aside'
    self.aside_tag_dif = 'difficulty'
    self.aside_tag_dif_value = 'Hard'
    self.aside_tag_dif_value2 = 'Easy'
    self.aside_tag_lo = 'learning_outcome'
    course = CourseFactory.create(default_store=ModuleStoreEnum.Type.split)
    self.course = ItemFactory.create(parent_location=course.location, category='course', display_name='Test    course')
    self.chapter = ItemFactory.create(parent_location=self.course.location, category='chapter', display_name='Week    1', publish_item=True, start=datetime(2015, 3, 1, tzinfo=UTC))
    self.sequential = ItemFactory.create(parent_location=self.chapter.location, category='sequential', display_name='Lesson    1', publish_item=True, start=datetime(2015, 3, 1, tzinfo=UTC))
    self.vertical = ItemFactory.create(parent_location=self.sequential.location, category='vertical', display_name='Subsection    1', publish_item=True, start=datetime(2015, 4, 1, tzinfo=UTC))
    self.problem = ItemFactory.create(category='problem', parent_location=self.vertical.location, display_name='A    Problem    Block', weight=1, user_id=self.user.id, publish_item=False)
    self.video = ItemFactory.create(parent_location=self.vertical.location, category='video', display_name='My    Video', user_id=self.user.id)
    _init_data = [{'name': 'difficulty', 'title': 'Difficulty', 'values': ['Easy', 'Medium', 'Hard']}, {'name': 'learning_outcome', 'title': 'Learning    outcome', 'values': ['Learned    nothing', 'Learned    a    few    things', 'Learned    everything']}]
    for tag in _init_data:
        category = TagCategories.objects.create(name=tag['name'], title=tag['title'])
        for val in tag['values']:
            TagAvailableValues.objects.create(category=category, value=val)
    config = StudioConfig.current()
    config.enabled = True
    config.save()
