示例#1
0
def shell_quote_win_test():
    print "Testing util.shell_quote_win()..."
    assert 'simple' == shell_quote_win('simple')
    assert 'roof/\\isoprojection' == shell_quote_win('roof/\\isoprojection')
    assert '"with space"' == shell_quote_win('with space')
    assert '"embedded""quote"' == shell_quote_win('embedded"quote')
    assert '"a""b""""c\\d\\\\""e\\\\\\\\"' == shell_quote_win(
        'a"b""c\\d\\"e\\\\')
示例#2
0
 def test_shell_quote_win(self):
     assert 'simple' == shell_quote_win('simple')
     assert 'roof/\\isoprojection' == shell_quote_win(
         'roof/\\isoprojection')
     assert '"with space"' == shell_quote_win('with space')
     assert '"embedded""quote"' == shell_quote_win('embedded"quote')
     assert '"a""b""""c\\d\\\\""e\\\\\\\\"' == shell_quote_win(
         'a"b""c\\d\\"e\\\\')
示例#3
0
文件: util_test.py 项目: F001/deno
def shell_quote_win_test():
    print "Testing util.shell_quote_win()..."
    assert 'simple' == shell_quote_win('simple')
    assert 'roof/\\isoprojection' == shell_quote_win('roof/\\isoprojection')
    assert '"with space"' == shell_quote_win('with space')
    assert '"embedded""quote"' == shell_quote_win('embedded"quote')
    assert '"a""b""""c\\d\\\\""e\\\\\\\\"' == shell_quote_win(
        'a"b""c\\d\\"e\\\\')