def METHOD_NAME(exception_handler):
    # test that CoreExceptionHandler do not ignore exceptions out of
    # IGNORED_ERRORS_BY_TYPE, IGNORED_ERRORS_BY_CODE and IGNORED_ERRORS_BY_SUBSTRING
    # AttributeError is not in the IGNORED_ERRORS_BY_TYPE, IGNORED_ERRORS_BY_CODE or IGNORED_ERRORS_BY_SUBSTRING
    assert not exception_handler._is_ignored(AttributeError())
    # OSError with code 1 is not in the IGNORED_ERRORS_BY_CODE
    assert not exception_handler._is_ignored(OSError(1, 'Arbitrary error message'))
    # RuntimeError is in IGNORED_ERRORS_BY_REGEX, but the message does not contain "invalid info-hash" substring
    assert not exception_handler._is_ignored(RuntimeError('Arbitrary error message'))