'Tests shopping cart link is available in navigation header if request is not from a microsite.'

def test_shopping_cart_navigation_link_not_in_microsite(self):

    CourseEnrollment.enroll(self.user, self.course_key)
    self.add_course_to_user_cart(self.testing_course.id)
    resp = self.client.get(reverse('courseware', kwargs={'course_id': unicode(self.course.id)}))
    self.assertEqual(resp.status_code, 200)
    self.assertIn('<a    class="shopping-cart"', resp.content)
