def didnt_raise_expected(*args, **kwargs):
        """Return whether expected exception wasn't raised.

        When an exception is thrown, that is, an exception
        marked as expected, it is caught and reported, then
        the function proceeds to the end returning None.

        Otherwise, if no exception is thrown, we return True.
        """
        ### try executing the function with the received
        ### arguments
        try:
            raiser_func(*args, **kwargs)

        ### if an exception marked to be reraise is raised,
        ### reraise it as expected

        except exceptions_to_reraise as err:
            raise err

        ### if an exception marked as expected is raised,
        ### it is caught and the exception message is passed
        ### reported;

        except expected_exceptions as err:

            ### first of all define the exception message to
            ### be reported

            ## if a new message was given, use it
            if new_message:
                msg = new_message

            ## otherwise assemble a message from the
            ## message of the exception caught, whether
            ## preformated or not

            else:

                ## grab exception message

                raw_msg = (
                    ## preformat exception message
                    "{}: {}".format(err.__class__.__name__, str(err))
                    if include_exception_name
                    ## or use it as-is
                    else str(err)
                )

                ## then pass it through the custom
                ## formatter
                msg = message_formatter(raw_msg)

            ### then pass the message to the reporting
            ### function
            reporting_func(msg)

        ### if no exception is raised, though, we just
        ### return True
        else:
            return True
Return whether expected exception wasn't raised.

        When an exception is thrown, that is, an exception
        marked as expected, it is caught and reported, then
        the function proceeds to the end returning None.

        Otherwise, if no exception is thrown, we return True.
        
nodezator/ourstdlibs/exceptionutils.py