Lines Matching refs:local

37         self.local = pysss.local()
142 "Test that the local backed binding can be instantiated"
143 local = pysss.local()
144 self.assert_(local.__class__, "<type 'sss.local'>")
152 "Test adding a local user"
154 self.local.useradd(self.username)
160 "Test adding a local user with modified parameters"
162 self.local.useradd(self.username,
174 "Test adding a local user without creating his home dir"
176 self.local.useradd(self.username, create_home = False)
180 self.local.userdel(self.username, remove = False)
184 "Test adding a local user and init his homedir from a custom location"
196 self.local.useradd(self.username, skel = skeldir)
203 "Test adding a local user with group membership"
208 self.local.useradd(self.username,
217 "Test adding a local user with a custom UID"
219 self.local.useradd(self.username,
226 "Test that local.useradd() requires the username parameter"
227 self.assertRaises(TypeError, self.local.useradd)
230 "Test adding a local with a duplicite name"
232 self.local.useradd(self.username)
234 self.local.useradd(self.username)
243 "Test adding a local with a duplicite user ID"
245 self.local.useradd(self.username, uid=1025)
247 self.local.useradd("testUseraddUIDAlreadyExists2", uid=1025)
260 self.local.userdel("testUserdel")
268 self.local.userdel("testUserdel", remove=False)
277 self.local.userdel("testUserdelNegative")
285 self.local = pysss.local()
294 self.local.usermod(self.username,
305 self.local.usermod(self.username,
316 self.local.usermod(self.username,
320 self.local.usermod(self.username,
324 self.local.usermod(self.username,
334 self.local.usermod(self.username,
335 lock=self.local.lock)
338 self.local.usermod(self.username,
339 lock=self.local.unlock)
349 "Test adding a local group"
351 self.local.groupadd(self.groupname)
355 "Test adding a local group with a custom GID"
357 self.local.groupadd(self.groupname,
364 "Test that local.groupadd() requires the groupname parameter"
365 self.assertRaises(TypeError, self.local.groupadd)
368 "Test adding a local with a duplicite name"
370 self.local.groupadd(self.groupname)
372 self.local.groupadd(self.groupname)
381 "Test adding a local with a duplicite group ID"
383 self.local.groupadd(self.groupname, gid=1025)
385 self.local.groupadd("testGroupaddGIDAlreadyExists2", gid=1025)
397 self.local.groupdel("testGroupdel")
403 self.local.groupdel("testGroupdelNegative")
412 self.local = pysss.local()
421 self.local.groupmod(self.groupname,
431 self.local.groupmod(self.groupname,
435 self.local.groupmod(self.groupname,
439 self.local.groupmod(self.groupname,