當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。