def testRemoveByIdRecursivelyWithFiles(self):
        project = XcodeProject(self.obj)
        result = project.remove_group_by_id('a')

        self.assertTrue(result)
        self.assertIsNone(project.objects['a'])
        self.assertIsNone(project.objects['b'])
        self.assertIsNone(project.objects['c'])
    def testRemoveByIdRecursivelyWithFiles(self):
        project = XcodeProject(self.obj)
        result = project.remove_group_by_id('a')

        self.assertTrue(result)
        self.assertIsNone(project.objects['a'])
        self.assertIsNone(project.objects['b'])
        self.assertIsNone(project.objects['c'])
Exemple #3
0
    def testRemoveByIdNonRecursive(self):
        project = XcodeProject(self.obj)
        group = project.objects['1']
        result = project.remove_group_by_id('1', recursive=False)

        self.assertTrue(result)
        self.assertFalse(project.objects['root'].has_child(group))
        self.assertIsNone(project.objects['1'])
        self.assertIsNotNone(project.objects['2'])
        self.assertIsNotNone(project.objects['3'])
    def testRemoveByIdNonRecursive(self):
        project = XcodeProject(self.obj)
        group = project.objects['1']
        result = project.remove_group_by_id('1', recursive=False)

        self.assertTrue(result)
        self.assertFalse(project.objects['root'].has_child(group))
        self.assertIsNone(project.objects['1'])
        self.assertIsNotNone(project.objects['2'])
        self.assertIsNotNone(project.objects['3'])
Exemple #5
0
    def testRemoveByIdNotFound(self):
        project = XcodeProject(self.obj)

        self.assertFalse(project.remove_group_by_id('xxx'))
Exemple #6
0
    def testRemoveBrokenGroups(self):
        project = XcodeProject(self.obj)
        result = project.remove_group_by_id('broken')

        self.assertFalse(result)
    def testRemoveBrokenGroups(self):
        project = XcodeProject(self.obj)
        result = project.remove_group_by_id('broken')

        self.assertFalse(result)
    def testRemoveByIdNotFound(self):
        project = XcodeProject(self.obj)

        self.assertFalse(project.remove_group_by_id('xxx'))