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() None[source]

Set up the generic testing method.

pre_setup_hook() None[source]

Run before setUp.

post_instantiation_hook() None[source]

Perform actions after instantiation.

test_instance() None[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() None[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() None[source]

Set up the test case.