本文整理汇总了Python中Testing.startTest方法的典型用法代码示例。如果您正苦于以下问题:Python Testing.startTest方法的具体用法?Python Testing.startTest怎么用?Python Testing.startTest使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Testing
的用法示例。
在下文中一共展示了Testing.startTest方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _spec_test_output
# 需要导入模块: import Testing [as 别名]
# 或者: from Testing import startTest [as 别名]
def _spec_test_output(self, spec):
'''Wrapper that checks spec file and returns output'''
pkg = Testing.getTestedSpecPackage(spec)
Testing.startTest()
# call check_spec() directly, as check() doesn't work with getTestedSpecPackage()
SCLCheck.check.check_spec(pkg, pkg.name)
return Testing.getOutput()
示例2: setUp
# 需要导入模块: import Testing [as 别名]
# 或者: from Testing import startTest [as 别名]
def setUp(self):
self.pkg = Testing.getTestedSpecPackage('spec/SpecCheck')
Testing.startTest()
示例3: _rpm_test_output
# 需要导入模块: import Testing [as 别名]
# 或者: from Testing import startTest [as 别名]
def _rpm_test_output(self, rpm):
'''Wrapper that checks RPM package and returns output'''
with Testing.getTestedPackage(rpm) as pkg:
Testing.startTest()
BinariesCheck.check.check(pkg)
return Testing.getOutput()
示例4: _rpm_test_output
# 需要导入模块: import Testing [as 别名]
# 或者: from Testing import startTest [as 别名]
def _rpm_test_output(self, rpm):
'''Wrapper that checks RPM package and returns output'''
pkg = Testing.getTestedPackage(rpm)
Testing.startTest()
SCLCheck.check.check(pkg)
return Testing.getOutput()
示例5: setUp
# 需要导入模块: import Testing [as 别名]
# 或者: from Testing import startTest [as 别名]
def setUp(self):
self.pkg = Testing.getTestedPackage('PamCheck')
Testing.startTest()
示例6: setUp
# 需要导入模块: import Testing [as 别名]
# 或者: from Testing import startTest [as 别名]
def setUp(self):
Testing.startTest()
示例7: _rpm_test_output
# 需要导入模块: import Testing [as 别名]
# 或者: from Testing import startTest [as 别名]
def _rpm_test_output(self, rpm):
"""Wrapper that checks RPM package and returns output"""
with Testing.getTestedPackage(rpm) as pkg:
Testing.startTest()
SCLCheck.check.check(pkg)
return Testing.getOutput()