def test_browser_log_missing_drivers(caplog):
    """Missing drivers are logged at the debug level."""
    import logging

    caplog.set_level(logging.DEBUG)
    old_import = patch_driver("flask")
    from splinter import browser

    reload(browser)
    unpatch_driver(browser, old_import)

    assert 12 == len(caplog.records)
    for i in range(0, 11):
        record = caplog.records[i]
        assert record.levelname == "DEBUG"
        assert "Import Warning" in record.message
Missing drivers are logged at the debug level.
tests/tests_splinter/test_browser.py