scope_harness.DepartmentMatcher

class scope_harness.DepartmentMatcher((object)arg1)

Matcher object that holds constraints for matching departments.

all_label((DepartmentMatcher)arg1, (str)arg2) → DepartmentMatcher :

Set the department alternate (the ‘all’ variant’) label to match

child((DepartmentMatcher)arg1, (ChildDepartmentMatcher)arg2) → DepartmentMatcher :

Set the matcher for child department

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

Set the minimum number of departments

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

Set the exact number of departments

id((DepartmentMatcher)arg1, (str)arg2) → DepartmentMatcher :

Set the department id to match

is_hidden((DepartmentMatcher)arg1, (bool)arg2) → DepartmentMatcher :

Set the ‘hidden’ flag to match

is_root((DepartmentMatcher)arg1, (bool)arg2) → DepartmentMatcher :

Set the ‘root’ flag to match

label((DepartmentMatcher)arg1, (str)arg2) → DepartmentMatcher :

Set the department name (label) to match

match((DepartmentMatcher)arg1, (Department)arg2) → MatchResult :
match( (ResultMatcher)arg1, (MatchResult)arg2, (Department)arg3) -> None :
Match the department
mode((DepartmentMatcher)arg1, (DepartmentMatcherMode)arg2) → DepartmentMatcher :

Set the matching mode, see DepartmentMatcherMode.

parent_id((DepartmentMatcher)arg1, (str)arg2) → DepartmentMatcher :

Set the id of parent department to match

parent_label((DepartmentMatcher)arg1, (str)arg2) → DepartmentMatcher :

Set the label of parent department to match