示例#1
0
 def assert_does_not_escape(self, arg):
     self.assertEqual(escapeShellArgIfNeeded(arg), arg)
示例#2
0
 def assert_escapes(self, arg):
     escaped = '"{}"'.format(arg)
     self.assertEqual(escapeShellArgIfNeeded(arg), escaped)
示例#3
0
 def assert_escapes(self, arg):
     escaped = '"{}"'.format(arg)
     self.assertEqual(escapeShellArgIfNeeded(arg), escaped)
示例#4
0
 def assert_does_not_escape(self, arg):
     self.assertEqual(escapeShellArgIfNeeded(arg), arg)
示例#5
0
 def assert_escapes(self, arg):
     escaped = f'"{arg}"'
     self.assertEqual(escapeShellArgIfNeeded(arg), escaped)