Lines Matching refs:chown_func
298 def _test_all_chown_common(self, chown_func, first_param, stat_func): argument
308 chown_func(first_param, uid, gid)
310 chown_func(first_param, -1, gid)
312 chown_func(first_param, uid, -1)
330 chown_func(first_param, big_value, big_value)
332 chown_func(first_param, -1, -1)
334 chown_func(first_param, uid, gid)
343 self.assertRaises(OSError, chown_func, first_param, 0, 0)
345 self.assertRaises(OSError, chown_func, first_param, 0, -1)
348 self.assertRaises(OSError, chown_func, first_param, -1, 0)
352 self.assertRaises(TypeError, chown_func, first_param, t(uid), gid)
354 self.assertRaises(TypeError, chown_func, first_param, uid, t(gid))