'Test courseware if recent visited subsection become unpublished.'

def test_courseware(self):

    self._goto_problem_page()
    LogoutPage(self.browser).visit()
    auto_auth(self.browser, 'STAFF_TESTER', 'staff101@example.com', True, self.course_id)
    self.studio_course_outline.visit()
    self.studio_course_outline.change_problem_release_date()
    LogoutPage(self.browser).visit()
    auto_auth(self.browser, self.USERNAME, self.EMAIL, False, self.course_id)
    self.courseware_page.visit()
    self.assertEqual(self.problem_page.problem_name, 'Test    Problem    2')
