Home | History | Annotate | Download | only in test

Lines Matching refs:gid

696         def check_stat(uid, gid):
700 self.assertEqual(stat.st_gid, gid)
702 gid = os.getgid()
704 chown_func(first_param, uid, gid)
705 check_stat(uid, gid)
706 chown_func(first_param, -1, gid)
707 check_stat(uid, gid)
709 check_stat(uid, gid)
712 # Try an amusingly large uid/gid to make sure we handle
714 # uid/gid you like, even if they aren't defined.)
730 chown_func(first_param, uid, gid)
731 check_stat(uid, gid)
740 check_stat(uid, gid)
742 check_stat(uid, gid)
745 check_stat(uid, gid)
748 self.assertRaises(TypeError, chown_func, first_param, t(uid), gid)
749 check_stat(uid, gid)
750 self.assertRaises(TypeError, chown_func, first_param, uid, t(gid))
751 check_stat(uid, gid)
1050 # groups, ignoring order, duplicates, and the effective gid.
1052 # posix.getgroups() includes the effective gid.