def test_is_text_present_no_body(browser, app_url):
    "should work properly (return false) even if there's no body"
    browser.visit(app_url + "no-body")
    assert not browser.is_text_present("No such text")
should work properly (return false) even if there's no body
tests/test_all_drivers/test_is_text_present.py