本文整理匯總了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']})
示例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']})
示例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']})
示例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']})
示例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']})