Пример #1
0
def test_with_meta_characters():
    assert completion.escape("spam'd eggs \\ $ \" `") == '"spam\'d eggs \\\\ \\$ \\" \\`"'
Пример #2
0
def test_escape():
    assert completion.escape('foo bar') == "'foo bar'"
Пример #3
0
def test_escape_with_single_quotes():
    assert completion.escape("spam'd eggs") == '"spam\'d eggs"'