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