'Checks that the right compentents are rendered for user with ``user_tag``'

def _check_split_test(self, user_tag):

    UserCourseTagFactory(user=self.student, course_id=self.course.id, key='xblock.partition_service.partition_{0}'.format(self.partition.id), value=str(user_tag))
    resp = self.client.get(reverse('courseware_section', kwargs={'course_id': self.course.id.to_deprecated_string(), 'chapter': self.chapter.url_name, 'section': self.sequential.url_name}))
    content = resp.content
    self.assertIn('<button    class="{}    inactive    nav-item    tab"'.format(self.ICON_CLASSES[user_tag]), content)
    for tooltip in self.TOOLTIPS[user_tag]:
        self.assertIn(tooltip, content)
    unicode_content = content.decode('utf-8')
    for key in self.included_usage_keys[user_tag]:
        self.assertIn(unicode(key), unicode_content)
    for key in self.excluded_usage_keys[user_tag]:
        self.assertNotIn(unicode(key), unicode_content)
    for visible in self.VISIBLE_CONTENT[user_tag]:
        self.assertIn(visible, content)
