def test_fill_form_missing_values(browser, app_url):
    """Missing values should raise an error."""
    browser.visit(app_url)
    with pytest.raises(LookupError):
        browser.fill_form(
            {"query": "new query", "missing_form": "doesn't exist"},
        )
Missing values should raise an error.
tests/tests_zope_testbrowser/test_fill_form.py