def METHOD_NAME():
    client.load(
        'restart',
        name=client.app_name,
        module="longstart",
        processes={"spare": 1, "max": 2, "idle_timeout": 5},
    )
    assert len(pids_for_process()) == 1, 'longstarts == 1'
    client.get()
    pids = pids_for_process()
    assert len(pids) == 2, 'longstarts == 2'
    assert 'success' in client.conf_get(
        f'/control/applications/{client.app_name}/restart'
    ), 'restart processes'
    # wait for longstarted app
    time.sleep(2)
    new_pids = pids_for_process()
    assert len(new_pids) == 1, 'restart 1'
    assert len(new_pids.intersection(pids)) == 0, 'restart all new'