joythief.compound module¶
- class joythief.compound.AllOf(*matchers)[source]¶
Bases:
_Compound[T]Matches values which match all of the child matchers.
Note
Unlike
all()this comparison is not lazy; all matchers are compared, whether or not any are unequal.- Parameters:
matchers (Matcher[T])
- class joythief.compound.AnyOf(*matchers)[source]¶
Bases:
_Compound[T]Matches values which match any of the child matchers.
Note
Unlike
any()this comparison is not lazy; all matchers are compared, whether or not any are equal.- Parameters:
matchers (Matcher[T])
- exception joythief.compound.PointlessCompound[source]¶
Bases:
UserWarningEmitted if you create a compound matcher with a single child matcher.