def test_sqlerror(): text = "Hello World" err = sql.SqlError(text, environmental=True) assert str(err) == text assert err.text() == text assert err.environmental
def raise_error(url, replace=False): raise sql.SqlError("Error message", environmental=environmental)