'Verifies the course home tab when not unified.'

@override_waffle_flag(UNIFIED_COURSE_TAB_FLAG, active=False)
@override_waffle_flag(SHOW_REVIEWS_TOOL_FLAG, active=True)
@ddt.data([CourseUserType.ANONYMOUS, 'To    see    course    content'], [CourseUserType.ENROLLED, None], [CourseUserType.UNENROLLED, 'You    must    be    enrolled    in    the    course    to    see    course    content.'], [CourseUserType.UNENROLLED_STAFF, None])
@ddt.unpack
def test_home_page_not_unified(self, user_type, expected_message):

    self.user = self.create_user_for_course(self.course, user_type)
    url = course_home_url(self.course)
    response = self.client.get(url)
    self.assertContains(response, 'Course    Tools')
    self.assertContains(response, 'Today    is')
    self.assertNotContains(response, TEST_WELCOME_MESSAGE)
    is_enrolled = (user_type is CourseUserType.ENROLLED)
    is_unenrolled_staff = (user_type is CourseUserType.UNENROLLED_STAFF)
    expected_count = (1 if (is_enrolled or is_unenrolled_staff) else 0)
    self.assertContains(response, TEST_CHAPTER_NAME, count=expected_count)
    self.assertContains(response, 'Start    Course', count=expected_count)
    self.assertContains(response, 'Learn    About    Verified    Certificate', count=expected_count)
    self.assertContains(response, '<div    class="user-messages">', count=(1 if expected_message else 0))
    if expected_message:
        self.assertContains(response, expected_message)
