engine3650%python.module
fault.test

Harness implementation and support functions.

itertools
import

types0
import

get_test_index746%
function

get_test_index(tester)

Returns the first line number of the underlying code object.

test_order0
function

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
function

gather(container)

Returns an ordered list of attribute names that match the prefix.

select140%
function

select()

Slice the tests by comparing their identity to start and stop.

Harness0
class

Execute a collection of tests.

HarnessTestType0
data

TestType = types.Test

Harnesscollect0
data

collect = staticmethod(gather)
	@classmethod

Harnessfrom_module185%
classmethod

from_module(Class, module)

Harnesscount0
property
int

Number of tests that have been prepared for execution.

Harness__init__0
method

__init__(self, identity, container, tests)

Initialize the members of the Harness.

Harnessdispatch30%
method

dispatch(self, test)

Dispatch the given Test to resolve its fate.

Harnessexecute_tests357%
method

execute_tests(self)

Perform the collected tests.

execute80%
function

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.