コード例 #1
0
ファイル: testutils.py プロジェクト: tmbx/tbxsos-utils
 def failIf(self, expr, msg = None):
     try:
         TestCase.failIf(self, expr, msg)
     except:
         self.kmod.stop()
         self.kmod.save_logs(self.destdir)
         raise
コード例 #2
0
ファイル: unit.py プロジェクト: ewapptus/salt-testing
 def failIf(self, *args, **kwargs):
     raise DeprecationWarning(
         'The {0}() function is deprecated. Please start using {1}() '
         'instead.'.format('failIf', 'assertFalse'))
     return _TestCase.failIf(self, *args, **kwargs)
コード例 #3
0
 def failIf(self, *args, **kwargs):
     raise DeprecationWarning(
         'The {0}() function is deprecated. Please start using {1}() '
         'instead.'.format('failIf', 'assertFalse')
     )
     return _TestCase.failIf(self, *args, **kwargs)