def METHOD_NAME(expect, client, extra):
    request, response = client.get(
        "/images/fry/test.jpg" + extra, allow_redirects=False
    )
    redirect = "/images/fry/test.jpg"
    expect(response.status) == 302
    expect(response.headers["Location"]) == redirect