コード例 #1
0
 def test_escape_quotes(self):
     s = ssh_remote._escape_quotes('echo "\\"Hello, world!\\""')
     self.assertEqual(r'echo \"\\\"Hello, world!\\\"\"', s)
コード例 #2
0
ファイル: test_ssh_remote.py プロジェクト: openstack/sahara
 def test_escape_quotes(self):
     s = ssh_remote._escape_quotes('echo "\\"Hello, world!\\""')
     self.assertEqual(r'echo \"\\\"Hello, world!\\\"\"', s)