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.TestCase adding convenience methods.

setup / teardown

New setup() and teardown() methods can be defined in addition to the core setUp() + tearDown() methods.

Note: If you redefine the core setUp() + tearDown()
methods you must make sure super is called. super is not necessary for the lowercase versions.

Python 2.6 compatibility

This class also implements assertWarns(), assertWarnsRegex(), assertDictContainsSubset(), and assertItemsEqual() which are not available in the original Python 2.6 unittest implementation.