Harness implementation and support functions.
itertools
types0
get_test_index746%
get_test_index(tester)
Returns the first line number of the underlying code object.
test_order0
test_order(module, name)
Key function used by gather that uses get_test_index in order to elevate a test's position given that it was explicitly listed.
gather0
gather(container)
Returns an ordered list of attribute names that match the prefix.
select140%
select()
Slice the tests by comparing their identity to start and stop.
Harness0
Execute a collection of tests.
HarnessTestType0
TestType = types.Test
Harnesscollect0
collect = staticmethod(gather)
@classmethod
Harnessfrom_module185%
from_module(Class, module)
Harnesscount0int
Number of tests that have been prepared for execution.
Harness__init__0
__init__(self, identity, container, tests)
Initialize the members of the Harness.
Harnessdispatch30%
dispatch(self, test)
Dispatch the given Test to resolve its fate.
Harnessexecute_tests357%
execute_tests(self)
Perform the collected tests.
execute80%
execute(module)
Resolve the fate of the tests contained in module. No status information is printed and the exception of the first failure will be raised.