@pytest.mark.django_db
def test_ssorequestaccessview_fails_validation_if_form_incomplete(admin_client, groups_with_info, team_leaders):
    url = reverse('sso:request_access')
    response = admin_client.post(url, data={})
    assert (response.status_code == 200)
    assert ('self_assigned_group' in response.context['form'].errors)
    assert ('team_leader' in response.context['form'].errors)
@pytest.mark.django_db
def test_ssorequestaccessview_fails_validation_if_form_incomplete(admin_client, groups_with_info, team_leaders):
    url = reverse('sso:request_access')
    response = admin_client.post(url, data={})
    assert (response.status_code == 200)
    assert ('self_assigned_group' in response.context['form'].errors)
    assert ('team_leader' in response.context['form'].errors)