'Tests when request.user is anonymous'

@patch.dict(settings.FEATURES, {'ENABLE_SHOPPING_CART': True, 'ENABLE_PAID_COURSE_REGISTRATION': True})
def test_anonymous_user(self):

    self.request.user = AnonymousUser()
    context = user_has_cart_context_processor(self.request)
    self.assertFalse(context['should_display_shopping_cart_func']())
