module documentation

Hamcrest matchers useful throughout the test suite.

Class HasSum Match a sequence the elements of which sum to a value matched by another matcher.
Class IsSequenceOf Match a sequence where every element is matched by another matcher.
Class Semigroup A type with an associative binary operator.
Function isFailure Match an instance of Failure with matching attributes.
Function matches_result Match a TestCase instances with matching attributes.
Function similarFrame Match a tuple representation of a frame like those used by twisted.python.failure.Failure.
Type Variable S Undocumented
Type Variable T Undocumented
def isFailure(**properties: Matcher[object]) -> Matcher[object]:

Match an instance of Failure with matching attributes.

def matches_result(successes: Matcher[Any] = equal_to(0), errors: Matcher[Any] = has_length(0), failures: Matcher[Any] = has_length(0), skips: Matcher[Any] = has_length(0), expectedFailures: Matcher[Any] = has_length(0), unexpectedSuccesses: Matcher[Any] = has_length(0)) -> Matcher[Any]:

Match a TestCase instances with matching attributes.

def similarFrame(functionName: str, fileName: str) -> Matcher[Sequence[tuple[str, str, int, list[object], list[object]]]]:

Match a tuple representation of a frame like those used by twisted.python.failure.Failure.

S =

Undocumented

Value
TypeVar('S',
        bound=Semigroup[Any])
T =

Undocumented

Value
TypeVar('T')