示例#1
0
 def test_escape_quotes(self):
     s = ssh_remote._escape_quotes('echo "\\"Hello, world!\\""')
     self.assertEqual(r'echo \"\\\"Hello, world!\\\"\"', s)
示例#2
0
 def test_escape_quotes(self):
     s = ssh_remote._escape_quotes('echo "\\"Hello, world!\\""')
     self.assertEqual(r'echo \"\\\"Hello, world!\\\"\"', s)