def METHOD_NAME(db, client, username, password):
    client.login(username=username, password=password)
    url = reverse(urlnames['index'])
    response = client.get(url)
    assert response.status_code == status_map['list'][username], response.json()