def test_escape(): assert completion.escape('foo bar') == "'foo bar'"
def test_with_meta_characters(): assert completion.escape( "spam'd eggs \\ $ \" `") == '"spam\'d eggs \\\\ \\$ \\" \\`"'
def test_escape_with_single_quotes(): assert completion.escape("spam'd eggs") == '"spam\'d eggs"'
def test_with_meta_characters(): assert completion.escape("spam'd eggs \\ $ \" `") == '"spam\'d eggs \\\\ \\$ \\" \\`"'