

def test_open_before_input(self):
    '[Regression] Test that if an open filter is used, input filters\n        still receive the ``source_path`` kwargs.\n        '
    captured_kw = {
        
    }

    class TestFilter(Filter):

        def open(self, out, *a, **kw):
            out.write('foo')

        def input(self, *a, **kw):
            assert (not captured_kw)
            captured_kw.update(kw)
    self.create_files({
        'a': '1',
    })
    captured_kw.mkbundle('a', filters=TestFilter, output='out').build()
    assert ('source_path' in captured_kw)

dataset/ETHPy150Open miracle2k/webassets/tests/test_bundle_build.py TestFilterApplication.test_open_before_input/VarMisuse@97/161 `self`->`captured_kw`