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


Python Testing.getOutput方法代码示例

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


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

示例1: _spec_test_output

# 需要导入模块: import Testing [as 别名]
# 或者: from Testing import getOutput [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()
开发者ID:hroncok,项目名称:rpmlint-scl,代码行数:9,代码来源:test_scl.py

示例2: testcheck

# 需要导入模块: import Testing [as 别名]
# 或者: from Testing import getOutput [as 别名]
 def testcheck(self):
     SpecCheck.check.check_spec(self.pkg, self.pkg.name)
     out = "\n".join(Testing.getOutput())
     self.assertTrue("patch-not-applied Patch3" in out)
     self.assertFalse(re.search("patch-not-applied Patch\\b", out))
     self.assertFalse(re.search("patch-not-applied Patch[01245]", out))
     self.assertTrue("libdir-macro-in-noarch-package" not in out)
     self.assertTrue(len(re.findall("macro-in-comment", out)) == 1)
     self.assertTrue("unversioned-explicit-provides unversioned-provides"
                     in out)
     self.assertTrue("unversioned-explicit-provides versioned-provides"
                     not in out)
     self.assertTrue("unversioned-explicit-obsoletes unversioned-obsoletes"
                     in out)
     self.assertTrue("unversioned-explicit-obsoletes versioned-obsoletes"
                     not in out)
开发者ID:matwey,项目名称:rpmlint,代码行数:18,代码来源:test.SpecCheck.py

示例3: _rpm_test_output

# 需要导入模块: import Testing [as 别名]
# 或者: from Testing import getOutput [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()
开发者ID:pvalena,项目名称:rpmlint,代码行数:8,代码来源:test_binaries.py

示例4: testcheck

# 需要导入模块: import Testing [as 别名]
# 或者: from Testing import getOutput [as 别名]
 def testcheck(self):
     SpecCheck.check.check_spec(self.pkg, self.pkg.name)
     out = "\n".join(Testing.getOutput())
     self.assertFalse("patch-not-applied" in out)
开发者ID:Fak3,项目名称:rpmlint,代码行数:6,代码来源:test.SpecCheck3.py

示例5: _rpm_test_output

# 需要导入模块: import Testing [as 别名]
# 或者: from Testing import getOutput [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()
开发者ID:jasontibbitts,项目名称:rpmlint,代码行数:8,代码来源:test_scl.py

示例6: testcheck

# 需要导入模块: import Testing [as 别名]
# 或者: from Testing import getOutput [as 别名]
 def testcheck(self):
     PamCheck.check.check(self.pkg)
     self.assertEqual( Testing.getOutput(), ['PamCheck.i586: E: use-old-pam-stack /etc/pam.d/PamCheck (line 1)'])
开发者ID:matwey,项目名称:rpmlint,代码行数:5,代码来源:test.PamCheck.py

示例7: _rpm_test_output

# 需要导入模块: import Testing [as 别名]
# 或者: from Testing import getOutput [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()
开发者ID:rpm-software-management,项目名称:rpmlint,代码行数:8,代码来源:test_scl.py

示例8: testcheck

# 需要导入模块: import Testing [as 别名]
# 或者: from Testing import getOutput [as 别名]
 def testcheck(self):
     SpecCheck.check.check_source(self.pkg)
     out = "\n".join(Testing.getOutput())
     self.assertFalse(re.search(r" E: specfile-error error: query of specfile .*\.spec failed, can't parse", out))
开发者ID:c72578,项目名称:rpmlint,代码行数:6,代码来源:test.CheckInclude.py


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