nutools/pyulib/test/test_base/base.py

22 lines
548 B
Python
Raw Normal View History

2013-08-27 15:14:44 +04:00
# -*- coding: utf-8 mode: python -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
__all__ = ('TC',
'TestLoader',
'main',
)
from unittest import TestCase, TestSuite, TestLoader, main #@UnusedImport
class TC(TestCase):
eq = TestCase.failUnlessEqual
ist = TestCase.failUnless
isf = TestCase.failIf
ex = TestCase.failUnlessRaises
def tf(self):
eq = self.failUnlessEqual
ist = self.failUnless
isf = self.failIf
ex = self.failUnlessRaises
return eq, ist, isf, ex