Usage

Generic test cases.

class GenericTestCase(methodName='runTest')[source]

Generic tests.

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

setUp()[source]

Set up the generic testing method.

Return type

None

pre_setup_hook()[source]

Run before setUp.

Return type

None

post_instantiation_hook()[source]

Perform actions after instantiation.

Return type

None

test_instance()[source]

Trivially check the instance matches the class.

class MetaTestCase(methodName='runTest')[source]

A generic test for tests.

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_testing()[source]

Check that there is a test for all subclasses.

class TestsTestCase(methodName='runTest')[source]

A backwards compatible wrapper of MetaTestCase.

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

setUp()[source]

Set up the test case.