def METHOD_NAME(self):
    for attr in ['MSGQUEUE', 'NICE', 'RTPRIO', 'RTTIME', 'SIGPENDING']:
        with contextlib.suppress(AttributeError):
            self.assertIsInstance(getattr(resource, 'RLIMIT_' + attr), int)