'This makes sure if a user has this course in the cart, that the expected message
appears'

def test_already_in_cart(self):

    self.setup_user()
    cart = Order.get_cart_for_user(self.user)
    PaidCourseRegistration.add_to_order(cart, 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('This    course    is    in    your', resp.content)
    self.assertNotIn('Add    buyme    to    Cart    <span>($10    USD)</span>', resp.content)
