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