

def test_input_with_nested_switch_from_merge_to_full_mode(self):
    'A child bundle switches to full production mode (turning on the\n        filters), while the parent is only in merge mode. Ensure that in such\n        a case input filters declared in the parent are applied in the child\n        (and only there).\n        '
    self.env.debug = 'merge'
    child_filters = AppendFilter(':childin', ':childout')
    parent_filters = AppendFilter(':rootin', ':rootout')
    b = self.mkbundle('a', self.mkbundle('b', filters=child_filters, debug=False), output='out', filters=self, debug='merge')
    b.build()
    assert (self.get('out') == 'bar\nqux:childin:rootin:childout')

dataset/ETHPy150Open miracle2k/webassets/tests/test_bundle_build.py TestFilterApplication.test_input_with_nested_switch_from_merge_to_full_mode/VarMisuse@67/201 `parent_filters`->`self`