示例#1
0
def test_escape_string_with_double_quote():
    assert sql_query_dict.quote_string('"a') == "'\"a'"
示例#2
0
def test_escape_string():
    assert sql_query_dict.quote_string('a') == "'a'"
示例#3
0
def test_escape_string_with_single_quote():
    assert sql_query_dict.quote_string("'a") == '"\'a"'
示例#4
0
def test_escape_string_with_single_and_double_quote():
    assert sql_query_dict.quote_string(""" '" """) == """' \\\'" '"""