'Tests that two resume course buttons appear when the course has been accessed.'

def test_resume_course(self):

    course = self.course
    chapter = course.children[0]
    sequential = chapter.children[0]
    self.visit_sequential(course, chapter, sequential)
    response = self.client.get(course_home_url(course))
    self.assertEqual(response.status_code, 200)
    self.assertContains(response, 'Start    Course', count=0)
    self.assertContains(response, 'Resume    Course', count=2)
    content = pq(response.content)
    self.assertTrue(content('.action-resume-course').attr('href').endswith(('/sequential/' + sequential.url_name)))
