remotivelabs.topology.testing.hamcrest.matchers
Matcher that passes if the last element of a list satisfies a nested matcher.
Generates a description of the object.
The description may be part of a description of a larger object of which this is just a component, so it should be worded appropriately.
Parameters
- description: The description to be built or appended to.
Return a matcher that passes if the last element of a list satisfies matcher.
Matcher that passes if a list ends with the given sequence.
Generates a description of the object.
The description may be part of a description of a larger object of which this is just a component, so it should be worded appropriately.
Parameters
- description: The description to be built or appended to.
Return a matcher that passes if a list ends with sequence.
Matcher that passes if a list contains the given values as a contiguous subsequence.
Consecutive duplicate values in the observed list are collapsed before matching, unless the expected sublist itself contains consecutive duplicates.
Generates a description of the object.
The description may be part of a description of a larger object of which this is just a component, so it should be worded appropriately.
Parameters
- description: The description to be built or appended to.
Return a matcher that passes if a list contains sublist as a contiguous subsequence.
Matcher that passes if each key in a dict maps to a list containing the expected subsequence.
Generates a description of the object.
The description may be part of a description of a larger object of which this is just a component, so it should be worded appropriately.
Parameters
- description: The description to be built or appended to.
Return a matcher that passes if each key in a dict contains its expected subsequence.