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