Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def testEscapeItem(self):
self.assertEqual(PBXGenericObject._escape("/bin/sh"), "/bin/sh")
self.assertEqual(PBXGenericObject._escape("abcdefghijklmnopqrstuvwyz0123456789"),
"abcdefghijklmnopqrstuvwyz0123456789")
self.assertEqual(PBXGenericObject._escape("some spaces"), '"some spaces"')
self.assertEqual(PBXGenericObject._escape("a.valid_id."), "a.valid_id.")
self.assertEqual(PBXGenericObject._escape("a-invalid-id"), '"a-invalid-id"')
self.assertEqual(PBXGenericObject._escape(""), '""')
self.assertEqual(PBXGenericObject._escape("script \\ continuation"), '"script \\\\ continuation"')
def testEscapeItem(self):
self.assertEqual(PBXGenericObject._escape("/bin/sh"), "/bin/sh")
self.assertEqual(PBXGenericObject._escape("abcdefghijklmnopqrstuvwyz0123456789"),
"abcdefghijklmnopqrstuvwyz0123456789")
self.assertEqual(PBXGenericObject._escape("some spaces"), '"some spaces"')
self.assertEqual(PBXGenericObject._escape("a.valid_id."), "a.valid_id.")
self.assertEqual(PBXGenericObject._escape("a-invalid-id"), '"a-invalid-id"')
self.assertEqual(PBXGenericObject._escape(""), '""')
self.assertEqual(PBXGenericObject._escape("script \\ continuation"), '"script \\\\ continuation"')
def testEscapeItem(self):
self.assertEqual(PBXGenericObject._escape("/bin/sh"), "/bin/sh")
self.assertEqual(PBXGenericObject._escape("abcdefghijklmnopqrstuvwyz0123456789"),
"abcdefghijklmnopqrstuvwyz0123456789")
self.assertEqual(PBXGenericObject._escape("some spaces"), '"some spaces"')
self.assertEqual(PBXGenericObject._escape("a.valid_id."), "a.valid_id.")
self.assertEqual(PBXGenericObject._escape("a-invalid-id"), '"a-invalid-id"')
self.assertEqual(PBXGenericObject._escape(""), '""')
self.assertEqual(PBXGenericObject._escape("script \\ continuation"), '"script \\\\ continuation"')
def testEscapeItem(self):
self.assertEqual(PBXGenericObject._escape("/bin/sh"), "/bin/sh")
self.assertEqual(PBXGenericObject._escape("abcdefghijklmnopqrstuvwyz0123456789"),
"abcdefghijklmnopqrstuvwyz0123456789")
self.assertEqual(PBXGenericObject._escape("some spaces"), '"some spaces"')
self.assertEqual(PBXGenericObject._escape("a.valid_id."), "a.valid_id.")
self.assertEqual(PBXGenericObject._escape("a-invalid-id"), '"a-invalid-id"')
self.assertEqual(PBXGenericObject._escape(""), '""')
self.assertEqual(PBXGenericObject._escape("script \\ continuation"), '"script \\\\ continuation"')
def testEscapeItem(self):
self.assertEqual(PBXGenericObject._escape("/bin/sh"), "/bin/sh")
self.assertEqual(PBXGenericObject._escape("abcdefghijklmnopqrstuvwyz0123456789"),
"abcdefghijklmnopqrstuvwyz0123456789")
self.assertEqual(PBXGenericObject._escape("some spaces"), '"some spaces"')
self.assertEqual(PBXGenericObject._escape("a.valid_id."), "a.valid_id.")
self.assertEqual(PBXGenericObject._escape("a-invalid-id"), '"a-invalid-id"')
self.assertEqual(PBXGenericObject._escape(""), '""')
self.assertEqual(PBXGenericObject._escape("script \\ continuation"), '"script \\\\ continuation"')
def testEscapeItem(self):
self.assertEqual(PBXGenericObject._escape("/bin/sh"), "/bin/sh")
self.assertEqual(PBXGenericObject._escape("abcdefghijklmnopqrstuvwyz0123456789"),
"abcdefghijklmnopqrstuvwyz0123456789")
self.assertEqual(PBXGenericObject._escape("some spaces"), '"some spaces"')
self.assertEqual(PBXGenericObject._escape("a.valid_id."), "a.valid_id.")
self.assertEqual(PBXGenericObject._escape("a-invalid-id"), '"a-invalid-id"')
self.assertEqual(PBXGenericObject._escape(""), '""')
self.assertEqual(PBXGenericObject._escape("script \\ continuation"), '"script \\\\ continuation"')
def testEscapeItem(self):
self.assertEqual(PBXGenericObject._escape("/bin/sh"), "/bin/sh")
self.assertEqual(PBXGenericObject._escape("abcdefghijklmnopqrstuvwyz0123456789"),
"abcdefghijklmnopqrstuvwyz0123456789")
self.assertEqual(PBXGenericObject._escape("some spaces"), '"some spaces"')
self.assertEqual(PBXGenericObject._escape("a.valid_id."), "a.valid_id.")
self.assertEqual(PBXGenericObject._escape("a-invalid-id"), '"a-invalid-id"')
self.assertEqual(PBXGenericObject._escape(""), '""')
self.assertEqual(PBXGenericObject._escape("script \\ continuation"), '"script \\\\ continuation"')