本文整理汇总了Python中pbxproj.XcodeProject.remove_group_by_id方法的典型用法代码示例。如果您正苦于以下问题:Python XcodeProject.remove_group_by_id方法的具体用法?Python XcodeProject.remove_group_by_id怎么用?Python XcodeProject.remove_group_by_id使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pbxproj.XcodeProject
的用法示例。
在下文中一共展示了XcodeProject.remove_group_by_id方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: testRemoveByIdRecursivelyWithFiles
# 需要导入模块: from pbxproj import XcodeProject [as 别名]
# 或者: from pbxproj.XcodeProject import remove_group_by_id [as 别名]
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'])
示例2: testRemoveByIdNonRecursive
# 需要导入模块: from pbxproj import XcodeProject [as 别名]
# 或者: from pbxproj.XcodeProject import remove_group_by_id [as 别名]
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'])
示例3: testRemoveByIdNotFound
# 需要导入模块: from pbxproj import XcodeProject [as 别名]
# 或者: from pbxproj.XcodeProject import remove_group_by_id [as 别名]
def testRemoveByIdNotFound(self):
project = XcodeProject(self.obj)
self.assertFalse(project.remove_group_by_id('xxx'))
示例4: testRemoveBrokenGroups
# 需要导入模块: from pbxproj import XcodeProject [as 别名]
# 或者: from pbxproj.XcodeProject import remove_group_by_id [as 别名]
def testRemoveBrokenGroups(self):
project = XcodeProject(self.obj)
result = project.remove_group_by_id('broken')
self.assertFalse(result)