@pytest.mark.django_db
def test_ssorequestaccessview_with_no_team_leaders_group(admin_client):
    url = reverse('sso:request_access')
    response = admin_client.get(url)
    team_leader_field = response.context['form']['team_leader'].field
    assert (tuple(team_leader_field.choices) == (BLANK_CHOICE,))
@pytest.mark.django_db
def test_ssorequestaccessview_with_no_team_leaders_group(admin_client):
    url = reverse('sso:request_access')
    response = admin_client.get(url)
    team_leader_field = response.context['form']['team_leader'].field
    assert (tuple(team_leader_field.choices) == (BLANK_CHOICE,))