'Unauthenticated users accessing the admin page should be directed to
the OpenID login url.'

def test_admin_site_with_openid_login_non_authenticated_user(self):

    response = self.client.get('/admin/')
    self.assertEqual(302, response.status_code)
    self.assertEqual('http://testserver/openid/login/?next=/admin/', response['Location'])
