def test_is_ignorable(self):

        MESSAGE = {'id': ['foo', 'bar', 'baz'],
                   'message': 'Foo',
                   'description': 'Foo',
                   'context': ['foo', 'bar', 'baz'],
                   'file': 'foo.js', 'line': 1}

        IGNORABLE_TYPES = ('notice', 'warning')
        OTHER_TYPES = ('error',)

        IGNORABLE_SEVERITIES = ('trivial', 'low')
        OTHER_SEVERITIES = ('medium', 'high')

        def is_ignorable(**kw):
            """Return true if the base message with the given keyword overrides
            is ignorable."""
            msg = merge_dicts(MESSAGE, kw)
            return utils.ValidationComparator.is_ignorable(msg)

        # Non-ignorable types are not ignorable regardless of severity.
        for type_ in OTHER_TYPES:
            for severity in IGNORABLE_SEVERITIES + OTHER_SEVERITIES:
                assert not is_ignorable(signing_severity=severity, type=type_)

        # Non-ignorable severities are not ignorable regardless of type.
        for severity in OTHER_SEVERITIES:
            for type_ in IGNORABLE_TYPES + OTHER_TYPES:
                assert not is_ignorable(signing_severity=severity, type=type_)

        # Ignorable types with ignorable severities are ignorable.
        for severity in IGNORABLE_SEVERITIES:
            for type_ in IGNORABLE_TYPES:
                assert is_ignorable(signing_severity=severity, type=type_)
Return currently active filters for a filter type.
dataset/ETHPy150Open mozilla/addons-server/src/olympia/devhub/tests/test_utils.py/TestValidationComparator.test_is_ignorable--crossover with--dataset/ETHPy150Open rproepp/spykeviewer/spykeviewer/ui/filter_dock.py/FilterDock.get_active_filters