'This makes sure that the already enrolled message appears for paywalled courses'

def test_already_enrolled(self):

    self.setup_user()
    CourseEnrollment.enroll(self.user, self.course.id)
    url = reverse('about_course', args=[self.course.id.to_deprecated_string()])
    resp = self.client.get(url)
    self.assertEqual(resp.status_code, 200)
    self.assertIn('You    are    enrolled    in    this    course', resp.content)
    self.assertIn('View    Course', resp.content)
    self.assertNotIn('Add    buyme    to    Cart    <span>($10    USD)</span>', resp.content)
