(self, dn, object_class, **attrs)
| 98 | self.add_entry(dn, 'posixGroup', memberUid=member_uids, **other_attributes) |
| 99 | |
| 100 | def add_entry(self, dn, object_class, **attrs): |
| 101 | if 'objectClass' in attrs: |
| 102 | if not isinstance(attrs['objectClass'], list): |
| 103 | attrs['objectClass'] = [attrs['objectClass']] |
| 104 | else: |
| 105 | attrs['objectClass'] = [] |
| 106 | attrs['objectClass'].append(object_class) |
| 107 | |
| 108 | self._entries[dn] = attrs |
| 109 | |
| 110 | |
| 111 | class TestFindGroups(unittest.TestCase): |
no test coverage detected