Home | History | Annotate | Download | only in tests

Lines Matching refs:Rule

7     def __init__(self, rule):
8 data = rule.split(',')
14 self.rule = rule
58 # Will return any rule with:
63 for Rule in self.__Rules:
65 if "scontext" in kwargs and Rule.sctx not in kwargs['scontext']:
68 if "tcontext" in kwargs and Rule.tctx not in kwargs['tcontext']:
71 if "tclass" in kwargs and Rule.tclass not in kwargs['tclass']:
74 if "perms" in kwargs and not bool(Rule.perms & set(kwargs['perms'])):
76 yield Rule
88 Rule = TERule(buf.value)
89 self.__Rules.add(Rule)