Lines Matching refs:gid
305 def check_stat(uid, gid):
309 self.assertEqual(stat.st_gid, gid)
311 gid = os.getgid()
313 chown_func(first_param, uid, gid)
314 check_stat(uid, gid)
315 chown_func(first_param, -1, gid)
316 check_stat(uid, gid)
318 check_stat(uid, gid)
321 # Try an amusingly large uid/gid to make sure we handle
323 # uid/gid you like, even if they aren't defined.)
339 chown_func(first_param, uid, gid)
340 check_stat(uid, gid)
349 check_stat(uid, gid)
351 check_stat(uid, gid)
354 check_stat(uid, gid)
357 self.assertRaises(TypeError, chown_func, first_param, t(uid), gid)
358 check_stat(uid, gid)
359 self.assertRaises(TypeError, chown_func, first_param, uid, t(gid))
360 check_stat(uid, gid)
589 # includes the effective gid so we include it anyway, since id -G does