@pytest.mark.django_db
@pytest.mark.parametrize('url', (reverse('sso:request_access'), reverse('sso:request_access_success')))
def test_ssorequestaccess_views_only_available_to_authenticated_users(client, admin_client, url):
    response = client.get(url)
    assert (response.status_code == 302)
    assert response.url.startswith(settings.LOGIN_URL)
    response = admin_client.get(url)
    assert (response.status_code == 200)
@pytest.mark.django_db
@pytest.mark.parametrize('url', (reverse('sso:request_access'), reverse('sso:request_access_success')))
def test_ssorequestaccess_views_only_available_to_authenticated_users(client, admin_client, url):
    response = client.get(url)
    assert (response.status_code == 302)
    assert response.url.startswith(settings.LOGIN_URL)
    response = admin_client.get(url)
    assert (response.status_code == 200)