Lines Matching refs:list
25 _GROUP_DESC = {"mem": ("member list", {None: ("member", {})})}
61 An entry is a value, a list of entries, or a dictionary of entries.
65 A pattern is a value, a tuple, a list, or a dictionary of patterns.
69 A pattern can be matched against a value, a list, or a dictionary entry.
75 A list is considered matching a pattern, if the pattern is a list or a
76 tuple, where each of pattern list items matches an entry list item and
77 vice versa, or where each pattern tuple item matches an entry list item,
86 "contains_only" function to create patterns matching all entry list
87 items (list patterns), and "contains" function to create patterns
88 matching a subset of entry list items (tuple patterns).
115 if not isinstance(ent, list):
116 return "not a list, " + str(type(ent))
133 elif isinstance(pattern, list):
134 if not isinstance(ent, list):
135 return "not a list, " + str(type(ent))
171 Produce a pattern matching all list items against arguments.
174 return list(args)
179 Produce a pattern matching a subset of list items against arguments.
231 """Get passwd database entry list with root user removed."""
236 return list(map(_convert_passwd, passwd_list))
241 """Assert retrieved passwd list matches a pattern."""
329 return "list mismatch: " + d
391 """Get group database entry list with root group removed."""
396 return list(map(_convert_group, group_list))
401 """Assert retrieved group list matches a pattern."""
489 return "list mismatch: " + d