class documentation

class IsSequenceOf(BaseMatcher[Sequence[T]]):

Constructor: IsSequenceOf(elementMatcher)

View In Hierarchy

Match a sequence where every element is matched by another matcher. :ivar elementMatcher: The matcher which must match every element of the sequence.

Method __init__ Undocumented
Method describe_mismatch Describe the mismatch.
Method describe_to Describe this matcher for error messages.
Instance Variable elementMatcher Undocumented
Method _matches Determine whether every element of the sequence is matched.
def __init__(self, elementMatcher: Matcher[T]):

Undocumented

def describe_mismatch(self, item: Sequence[T], description: Description):

Describe the mismatch.

def describe_to(self, description: Description):

Describe this matcher for error messages.

elementMatcher =

Undocumented

def _matches(self, item: Sequence[T]) -> bool:

Determine whether every element of the sequence is matched.