'Verify the accordion remembers we\'ve already visited the Welcome section
and redirects correspondingly.'

def test_redirects_second_time(self):

    (email, password) = self.STUDENT_INFO[0]
    self.login(email, password)
    self.enroll(self.course, True)
    self.enroll(self.test_course, True)
    section_url = reverse('courseware_section', kwargs={'course_id': self.course.id.to_deprecated_string(), 'chapter': 'Overview', 'section': 'Welcome'})
    self.client.get(section_url)
    resp = self.client.get(reverse('courseware', kwargs={'course_id': self.course.id.to_deprecated_string()}))
    self.assertRedirects(resp, section_url)
