'Tests that the start course button appears when the course has never been accessed.
Technically, this is a course home test, and not a course outline test, but checking the counts of
start/resume course should be done together to not get a false positive.'

def test_start_course(self):

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