Lines Matching refs:first_param
694 def _test_all_chown_common(self, chown_func, first_param, stat_func): argument
698 stat = stat_func(first_param)
704 chown_func(first_param, uid, gid)
706 chown_func(first_param, -1, gid)
708 chown_func(first_param, uid, -1)
726 chown_func(first_param, big_value, big_value)
728 chown_func(first_param, -1, -1)
730 chown_func(first_param, uid, gid)
739 self.assertRaises(OSError, chown_func, first_param, 0, 0)
741 self.assertRaises(OSError, chown_func, first_param, 0, -1)
744 self.assertRaises(OSError, chown_func, first_param, -1, 0)
748 self.assertRaises(TypeError, chown_func, first_param, t(uid), gid)
750 self.assertRaises(TypeError, chown_func, first_param, uid, t(gid))