def assert_does_not_escape(self, arg): self.assertEqual(escapeShellArgIfNeeded(arg), arg)
def assert_escapes(self, arg): escaped = '"{}"'.format(arg) self.assertEqual(escapeShellArgIfNeeded(arg), escaped)
def assert_escapes(self, arg): escaped = f'"{arg}"' self.assertEqual(escapeShellArgIfNeeded(arg), escaped)