def METHOD_NAME(db, client, username, password):
    client.login(username=username, password=password)
    url = reverse('upload')
    response = client.get(url)
    assert response.status_code == status_map['upload_get'][username], response.content
    if not password:
        assert response.url.startswith('/account/login/'), response.content