def METHOD_NAME(self):
    self.assertRaises(TypeError, resource.getrlimit)
    self.assertRaises(TypeError, resource.getrlimit, 42, 42)
    self.assertRaises(TypeError, resource.setrlimit)
    self.assertRaises(TypeError, resource.setrlimit, 42, 42, 42)