code: def silence_logging(method):
      
      @wraps(method)
      def wrapper(*args, **kwargs):
          logging.disable(logging.ERROR)
          result = method(*args, **kwargs)
          logging.disable(logging.NOTSET)
          return result
      return wrapper
docs: Disables logging for the duration of what is being wrapped.  This is
      particularly useful when testing if a test method is supposed to issue an
      error message which is confusing that the error shows for a successful
      test.