def METHOD_NAME():
    from nav.db import driver
    @logengine.swallow_all_but_db_exceptions
    def raiser():
        raise driver.Error("This is an ex-database")
    with pytest.raises(driver.Error):
        raiser()