当前位置: 首页>>代码示例>>Python>>正文


Python Orphans.get方法代码示例

本文整理汇总了Python中pulp_auto.units.Orphans.get方法的典型用法代码示例。如果您正苦于以下问题:Python Orphans.get方法的具体用法?Python Orphans.get怎么用?Python Orphans.get使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在pulp_auto.units.Orphans的用法示例。


在下文中一共展示了Orphans.get方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: test_03_delete_orphans

# 需要导入模块: from pulp_auto.units import Orphans [as 别名]
# 或者: from pulp_auto.units.Orphans import get [as 别名]
 def test_03_delete_orphans(self):
     delete_response = Orphans.delete(self.pulp)
     self.assertPulpOK()
     Task.wait_for_report(self.pulp, delete_response)
     info = Orphans.info(self.pulp)
     orphans = Orphans.get(self.pulp)
     self.assertPulpOK()
     for orphan_type_name in info.keys():
         self.assertEqual(len(orphans[orphan_type_name]), info[orphan_type_name]['count'])
         self.assertEqual(orphans[orphan_type_name], [])
开发者ID:CUXIDUMDUM,项目名称:pulp-automation,代码行数:12,代码来源:test_10_orphans.py

示例2: test_01_orphan_info_data_integrity

# 需要导入模块: from pulp_auto.units import Orphans [as 别名]
# 或者: from pulp_auto.units.Orphans import get [as 别名]
 def test_01_orphan_info_data_integrity(self):
     info = Orphans.info(self.pulp)
     orphans = Orphans.get(self.pulp)
     self.assertPulpOK()
     for orphan_type_name in orphans.keys():
         # reported count info is the same as the orphans counted
         self.assertEqual(len(orphans[orphan_type_name]), info[orphan_type_name]['count'])
         orphan_type = UnitFactory.type_map.orphans[orphan_type_name]
         # '_href' is correct
         self.assertEqual(pulp_auto.path_join(pulp_auto.path, orphan_type.path), info[orphan_type_name]['_href'])
         # all orphans are of the same type
         for orphan in orphans[orphan_type_name]:
             self.assertTrue(isinstance(orphan, orphan_type), "different type: %s, %s" % (orphan_type_name, orphan.type_id))
开发者ID:CUXIDUMDUM,项目名称:pulp-automation,代码行数:15,代码来源:test_10_orphans.py

示例3: test_08_check_no_orphan_appeared

# 需要导入模块: from pulp_auto.units import Orphans [as 别名]
# 或者: from pulp_auto.units.Orphans import get [as 别名]
 def test_08_check_no_orphan_appeared(self):
     #check that after unassociation of module it did not appered among orphans as it is still referenced to other repo
     orphans = Orphans.get(self.pulp)
     self.assertEqual(orphans['iso'], [])
     orphan_info = Orphans.info(self.pulp)
     self.assertEqual(orphan_info['iso']['count'], 0)
开发者ID:lenfree,项目名称:pulp-automation,代码行数:8,代码来源:test_17_iso_repo_orphans_and_copy.py

示例4: test_13_check_deleted_orphans

# 需要导入模块: from pulp_auto.units import Orphans [as 别名]
# 或者: from pulp_auto.units.Orphans import get [as 别名]
 def test_13_check_deleted_orphans(self):
     # check that all puppet_module orphans were successfully deleted
     orphans = Orphans.get(self.pulp)
     self.assertEqual(orphans['iso'], [])
     orphan_info = Orphans.info(self.pulp)
     self.assertEqual(orphan_info['iso']['count'], 0)
开发者ID:lenfree,项目名称:pulp-automation,代码行数:8,代码来源:test_17_iso_repo_orphans_and_copy.py


注:本文中的pulp_auto.units.Orphans.get方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。