def METHOD_NAME(
    self, app, db_session, factories
):
    token = factories.DeveloperToken(
        expires=datetime.datetime.utcnow() - datetime.timedelta(hours=1)
    )
    refresh_token = token.refresh_token
    db_session.commit()
    app.post(
        "/api/token",
        {"grant_type": "refresh_token", "refresh_token": refresh_token},
        status=400,
    )