本文整理汇总了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']})