How to use the pbxproj.PBXGenericObject._escape function in pbxproj

To help you get started, we’ve selected a few pbxproj examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github kronenthaler / mod-pbxproj / tests / TestPBXGenericObject.py View on Github external
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"')
github kronenthaler / mod-pbxproj / tests / TestPBXGenericObject.py View on Github external
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"')
github kronenthaler / mod-pbxproj / tests / TestPBXGenericObject.py View on Github external
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"')
github kronenthaler / mod-pbxproj / tests / TestPBXGenericObject.py View on Github external
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"')
github kronenthaler / mod-pbxproj / tests / TestPBXGenericObject.py View on Github external
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"')
github kronenthaler / mod-pbxproj / tests / TestPBXGenericObject.py View on Github external
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"')
github kronenthaler / mod-pbxproj / tests / TestPBXGenericObject.py View on Github external
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"')