def failIfAlmostEqual(self, first, second, places = 7, msg = None): try: TestCase.failIfAlmostEqual(self, first, second, places, msg) except: self.kmod.stop() self.kmod.save_logs(self.destdir) raise
def failIfAlmostEqual(self, *args, **kwargs): raise DeprecationWarning( 'The {0}() function is deprecated. Please start using {1}() ' 'instead.'.format('failIfAlmostEqual', 'assertNotAlmostEqual')) return _TestCase.failIfAlmostEqual(self, *args, **kwargs)
def failIfAlmostEqual(self, *args, **kwargs): raise DeprecationWarning( 'The {0}() function is deprecated. Please start using {1}() ' 'instead.'.format('failIfAlmostEqual', 'assertNotAlmostEqual') ) return _TestCase.failIfAlmostEqual(self, *args, **kwargs)