Пример #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(""" '" """) == """' \\\'" '"""