def does_not_raise(self, function, *args, **kwargs):
        """
            Check if a function does not raise an exception,
            *args and **kwargs are forwarded to the function
        """
        try:
            return function(*args, **kwargs)
        except Exception as e:
            self.log_error("{} did raise {}: {}".format(
                function.__name__,
                type(e).__name__, e
            ), None)
Check if a function does not raise an exception,
            *args and **kwargs are forwarded to the function