scope_harness.CategoryListMatcher

class scope_harness.CategoryListMatcher((object)arg1)

Matcher object that holds constraints for matching search categories.

category((CategoryListMatcher)arg1, (CategoryMatcher)arg2) → CategoryListMatcher :

Set the category matcher

has_at_least((CategoryListMatcher)arg1, (int)arg2) → CategoryListMatcher :

Set the minimum number of expected categories

has_exactly((CategoryListMatcher)arg1, (int)arg2) → CategoryListMatcher :

Set the exact number of expected categories

match((CategoryListMatcher)arg1, (object)arg2) → MatchResult :

Match the list of categories

mode((CategoryListMatcher)arg1, (CategoryListMatcherMode)arg2) → CategoryListMatcher :

Set the matching mode, see CategoryListMatcherMode.