'Tests that when a shib user types their email address into the login page, they get redirected
to the shib login.'

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

    response = self.client.post(reverse('login'), {'email': self.user_w_map.email, 'password': ''})
    self.assertEqual(response.status_code, 200)
    obj = json.loads(response.content)
    self.assertEqual(obj, {'success': False, 'redirect': reverse('shib-login')})
