def METHOD_NAME(
    client,
    mocker,
    api_user_pending,
):
    mocker.patch("app.main.views.verify.check_token", side_effect=SignatureExpired("expired"))
    response = client.get(url_for("main.verify_email", token="notreal"))
    assert response.status_code == 302
    assert response.location == url_for("main.resend_email_verification")