Lines Matching refs:first_param
698 def _test_all_chown_common(self, chown_func, first_param, stat_func): argument
702 stat = stat_func(first_param)
708 chown_func(first_param, uid, gid)
710 chown_func(first_param, -1, gid)
712 chown_func(first_param, uid, -1)
730 chown_func(first_param, big_value, big_value)
732 chown_func(first_param, -1, -1)
734 chown_func(first_param, uid, gid)
743 self.assertRaises(OSError, chown_func, first_param, 0, 0)
745 self.assertRaises(OSError, chown_func, first_param, 0, -1)
748 self.assertRaises(OSError, chown_func, first_param, -1, 0)
752 self.assertRaises(TypeError, chown_func, first_param, t(uid), gid)
754 self.assertRaises(TypeError, chown_func, first_param, uid, t(gid))