def METHOD_NAME(self) -> None:
    major = sys.version_info.major
    minor = sys.version_info.minor
    msg = self.get_message_definition()
    self.assert_with_fail_msg(msg, expected=True)
    msg.minversion = (major, minor - 1)
    msg.maxversion = (major, minor + 1)
    self.assert_with_fail_msg(msg, expected=True)
    msg.minversion = (major, minor + 1)
    self.assert_with_fail_msg(msg, expected=False)
    msg.minversion = (major, minor - 1)
    self.assert_with_fail_msg(msg, expected=True)
    msg.maxversion = (major, minor - 1)
    self.assert_with_fail_msg(msg, expected=False)