def test_upgrading_affect_on_normal_filters(self):
        """max_debug_level 'merge' upgrade does not cause filters with
        a 'normal' max_debug_value to run. Note: A nested bundle is
        used here, as otherwise the bundle's debug=True would also
        override any upgrades through filter `max_debug_value``
        attributes."""
        self.env.debug = True  # allows all bundle debug levels
        f = AppendFilter(':in_upgr', ':out_upgr')
        f.max_debug_level = None
        g = AppendFilter(':in_def', ':out_def')
        self.mkbundle(Bundle('1', filters=(f, g), debug=True),
                      output='out', debug='merge').build()
        assert self.get('out') == 'foo:in_upgr:out_upgr'
dataset/ETHPy150Open miracle2k/webassets/tests/test_bundle_build.py/TestMaxDebugLevelFilters.test_upgrading_affect_on_normal_filters/original