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 No summary
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): (source)

Match an instance of Failure with matching attributes.

Parameters
**properties:Matcher[object]Undocumented
Returns
Matcher[object]Undocumented
def matches_result(successes=equal_to(0), errors=has_length(0), failures=has_length(0), skips=has_length(0), expectedFailures=has_length(0), unexpectedSuccesses=has_length(0)): (source)

Match a TestCase instances with matching attributes.

Parameters
successes:MatcherUndocumented
errors:MatcherUndocumented
failures:MatcherUndocumented
skips:MatcherUndocumented
expectedFailures:MatcherUndocumented
unexpectedSuccesses:MatcherUndocumented
Returns
MatcherUndocumented
def similarFrame(functionName, fileName): (source)

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

Parameters
functionName:strUndocumented
fileName:strUndocumented
Returns
Matcher[Sequence[Tuple[str, str, int, List[object], List[object]]]]Undocumented

Undocumented

Value
TypeVar('S',
        bound=Semigroup)

Undocumented

Value
TypeVar('T')