Example #1
0
    def testGetTargetByNameNonExisting(self):
        project = XcodeProject(self.obj)

        target = project.get_target_by_name('non-existing')
        self.assertIsNone(target)
Example #2
0
    def testGetTargetByNameNonExisting(self):
        project = XcodeProject(self.obj)

        target = project.get_target_by_name('non-existing')
        self.assertIsNone(target)
Example #3
0
    def testGetTargetByNameExisting(self):
        project = XcodeProject(self.obj)

        target = project.get_target_by_name('app')
        self.assertEqual(target, project.objects['1'])
Example #4
0
    def testGetTargetByNameExisting(self):
        project = XcodeProject(self.obj)

        target = project.get_target_by_name('app')
        self.assertEqual(target, project.objects['1'])