def METHOD_NAME(self):
    self.assertRaises(TypeError, resource.setrlimit, None, (0, 0))
    self.assertRaises(TypeError, resource.setrlimit, "abc", (0, 0))
    self.assertRaises(TypeError, resource.setrlimit, 4.0, (0, 0))
    self.assertRaises(ValueError, resource.setrlimit, -1, (0, 0))
    self.assertRaises(ValueError, resource.setrlimit, self.RLIM_NLIMITS, (0, 0))
    self.assertRaises(ValueError, resource.setrlimit, 0, (0,))
    self.assertRaises(ValueError, resource.setrlimit, 0, (0, 0, 0))
    self.assertRaises(ValueError, resource.setrlimit, 0, (2.3, 0, 0))
    self.assertRaises(TypeError, resource.setrlimit, 0, None)