def test_spawn_page(app):
    with mock.patch.dict(app.users.settings, {'spawner_class': FormSpawner}):
        cookies = app.login_user('jones')
        r = get_page('spawn', app, cookies=cookies)
        assert r.url.endswith('/spawn')
        assert r.text in FormSpawner.options_form
dataset/ETHPy150Open jupyterhub/jupyterhub/jupyterhub/tests/test_pages.py/test_spawn_page/swapped operands of `in`