remotivelabs.topology.testing.matcher

L = list[~T]
class HasLastElement(hamcrest.core.base_matcher.BaseMatcher[list[~T]]):

Base class for all ~hamcrest.core.matcher.Matcher implementations.

Most implementations can just implement _matches, leaving the handling of any mismatch description to the matches method. But if it makes more sense to generate the mismatch description during the matching, override ~hamcrest.core.matcher.Matcher.matches() instead.

HasLastElement(matcher: hamcrest.core.matcher.Matcher[~T])
matcher
def describe_to(self, description: hamcrest.core.description.Description) -> None:

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.
def has_last_element( matcher: hamcrest.core.matcher.Matcher) -> HasLastElement:
class EndsWithSequence(hamcrest.core.base_matcher.BaseMatcher[list[~T]]):

Checks if a list ends with another list

EndsWithSequence(sequence: list[~T])
sequence
def describe_to(self, description: hamcrest.core.description.Description) -> None:

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.
def ends_with_signal_value_sequence( sequence: list[~T]) -> EndsWithSequence:
class ContainsContiguousSublist(hamcrest.core.base_matcher.BaseMatcher[list[~T]]):

Base class for all ~hamcrest.core.matcher.Matcher implementations.

Most implementations can just implement _matches, leaving the handling of any mismatch description to the matches method. But if it makes more sense to generate the mismatch description during the matching, override ~hamcrest.core.matcher.Matcher.matches() instead.

ContainsContiguousSublist(*sublist: ~T)
sublist
def describe_to(self, description: hamcrest.core.description.Description) -> None:

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.
def contains_signal_value_sequence( *sublist: ~T) -> ContainsContiguousSublist:
class ContainsContiguousSubdict(hamcrest.core.base_matcher.BaseMatcher[typing.Union[dict[str, list[~T]], dict[str, dict[str, list[~T]]]]]):

Base class for all ~hamcrest.core.matcher.Matcher implementations.

Most implementations can just implement _matches, leaving the handling of any mismatch description to the matches method. But if it makes more sense to generate the mismatch description during the matching, override ~hamcrest.core.matcher.Matcher.matches() instead.

ContainsContiguousSubdict(expected: dict[str, list[~T]] | dict[str, dict[str, list[~T]]])
expected
matchers: dict[str, hamcrest.core.base_matcher.BaseMatcher]
def describe_to(self, description: hamcrest.core.description.Description) -> None:

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.
def contains_signal_value_sequences( expected: dict[str, list[~T]] | dict[str, dict[str, list[~T]]]) -> ContainsContiguousSubdict: