'Tests that we get the error page when there is no REMOTE_USER
or Shib-Identity-Provider in request.META'

@unittest.skipUnless(settings.FEATURES.get('AUTH_USE_SHIB'), 'AUTH_USE_SHIB    not    set')
def test_exception_shib_login(self):

    no_remote_user_response = self.client.get(reverse('shib-login'), HTTP_SHIB_IDENTITY_PROVIDER=IDP)
    self.assertEqual(no_remote_user_response.status_code, 403)
    self.assertIn('identity    server    did    not    return    your    ID    information', no_remote_user_response.content)
    no_idp_response = self.client.get(reverse('shib-login'), HTTP_REMOTE_USER=REMOTE_USER)
    self.assertEqual(no_idp_response.status_code, 403)
    self.assertIn('identity    server    did    not    return    your    ID    information', no_idp_response.content)
