case.case¶
-
class
case.case.CaseMixin[source]¶ Mixin class that adds the utility methods to any unittest TestCase class.
-
class
case.case.Case(methodName='runTest')[source]¶ Test Case
Subclass of
unittest.TestCaseadding convenience methods.setup / teardown
New
setup()andteardown()methods can be defined in addition to the coresetUp()+tearDown()methods.- Note: If you redefine the core
setUp()+tearDown() - methods you must make sure
superis called.superis not necessary for the lowercase versions.
Python 2.6 compatibility
This class also implements
assertWarns(),assertWarnsRegex(),assertDictContainsSubset(), andassertItemsEqual()which are not available in the original Python 2.6 unittest implementation.- Note: If you redefine the core