def METHOD_NAME(self):
    self.assertRaises(TypeError, resource.prlimit)
    if os.geteuid() != 0:
        self.assertRaises(PermissionError, resource.prlimit,
                          1, resource.RLIMIT_AS)
    self.assertRaises(ProcessLookupError, resource.prlimit,
                      -1, resource.RLIMIT_AS)
    limit = resource.getrlimit(resource.RLIMIT_AS)
    self.assertEqual(resource.prlimit(0, resource.RLIMIT_AS), limit)
    self.assertEqual(resource.prlimit(0, resource.RLIMIT_AS, limit),
                     limit)