def METHOD_NAME(expect, client, extension):
    request, response = client.get(f"/fry/test.{extension}", allow_redirects=False)
    expect(response.status) == 302
    expect(response.headers["Location"]) == f"/images/fry/test.{extension}"