예제 #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
파일: test_git.py 프로젝트: pmisik/buildbot
 def assert_escapes(self, arg):
     escaped = f'"{arg}"'
     self.assertEqual(escapeShellArgIfNeeded(arg), escaped)