Lines Matching refs:first_param
303 def _test_all_chown_common(self, chown_func, first_param, stat_func):
307 stat = stat_func(first_param)
313 chown_func(first_param, uid, gid)
315 chown_func(first_param, -1, gid)
317 chown_func(first_param, uid, -1)
335 chown_func(first_param, big_value, big_value)
337 chown_func(first_param, -1, -1)
339 chown_func(first_param, uid, gid)
348 self.assertRaises(OSError, chown_func, first_param, 0, 0)
350 self.assertRaises(OSError, chown_func, first_param, 0, -1)
353 self.assertRaises(OSError, chown_func, first_param, -1, 0)
357 self.assertRaises(TypeError, chown_func, first_param, t(uid), gid)
359 self.assertRaises(TypeError, chown_func, first_param, uid, t(gid))