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


Python PartitionTable.delete方法代码示例

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


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

示例1: test_positive_delete_by_id

# 需要导入模块: from robottelo.cli.partitiontable import PartitionTable [as 别名]
# 或者: from robottelo.cli.partitiontable.PartitionTable import delete [as 别名]
    def test_positive_delete_by_id(self):
        """Create a Partition Table then delete it by its ID

        @id: 4d2369eb-4dc1-4ab5-96d4-c872c39f4ff5

        @Assert: Partition Table is deleted
        """
        ptable = make_partition_table()
        PartitionTable.delete({'id': ptable['id']})
        with self.assertRaises(CLIReturnCodeError):
            PartitionTable.info({'id': ptable['id']})
开发者ID:Ichimonji10,项目名称:robottelo,代码行数:13,代码来源:test_partitiontable.py

示例2: test_positive_delete_by_name

# 需要导入模块: from robottelo.cli.partitiontable import PartitionTable [as 别名]
# 或者: from robottelo.cli.partitiontable.PartitionTable import delete [as 别名]
    def test_positive_delete_by_name(self):
        """Create a Partition Table then delete it by its name

        @Feature: Partition Table

        @Assert: Partition Table is deleted
        """
        ptable = make_partition_table()
        PartitionTable.delete({'name': ptable['name']})
        with self.assertRaises(CLIReturnCodeError):
            PartitionTable.info({'name': ptable['name']})
开发者ID:anarang,项目名称:robottelo,代码行数:13,代码来源:test_partitiontable.py

示例3: test_positive_delete_by_name

# 需要导入模块: from robottelo.cli.partitiontable import PartitionTable [as 别名]
# 或者: from robottelo.cli.partitiontable.PartitionTable import delete [as 别名]
    def test_positive_delete_by_name(self):
        """Create a Partition Table then delete it by its name

        @id: 27bd427c-7601-4f3b-998f-b7baaaad0fb0

        @Assert: Partition Table is deleted
        """
        ptable = make_partition_table()
        PartitionTable.delete({'name': ptable['name']})
        with self.assertRaises(CLIReturnCodeError):
            PartitionTable.info({'name': ptable['name']})
开发者ID:Ichimonji10,项目名称:robottelo,代码行数:13,代码来源:test_partitiontable.py

示例4: test_positive_delete_by_name

# 需要导入模块: from robottelo.cli.partitiontable import PartitionTable [as 别名]
# 或者: from robottelo.cli.partitiontable.PartitionTable import delete [as 别名]
    def test_positive_delete_by_name(self):
        """Create a Partition Table then delete it by its name

        :id: 27bd427c-7601-4f3b-998f-b7baaaad0fb0

        :expectedresults: Partition Table is deleted

        :CaseImportance: Critical
        """
        ptable = make_partition_table()
        PartitionTable.delete({'name': ptable['name']})
        with self.assertRaises(CLIReturnCodeError):
            PartitionTable.info({'name': ptable['name']})
开发者ID:elyezer,项目名称:robottelo,代码行数:15,代码来源:test_partitiontable.py

示例5: test_positive_delete_by_id

# 需要导入模块: from robottelo.cli.partitiontable import PartitionTable [as 别名]
# 或者: from robottelo.cli.partitiontable.PartitionTable import delete [as 别名]
    def test_positive_delete_by_id(self):
        """Create a Partition Table then delete it by its ID

        :id: 4d2369eb-4dc1-4ab5-96d4-c872c39f4ff5

        :expectedresults: Partition Table is deleted

        :CaseImportance: Critical
        """
        ptable = make_partition_table()
        PartitionTable.delete({'id': ptable['id']})
        with self.assertRaises(CLIReturnCodeError):
            PartitionTable.info({'id': ptable['id']})
开发者ID:elyezer,项目名称:robottelo,代码行数:15,代码来源:test_partitiontable.py


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