

def test_deleted_source_files(self):
    'Bundle contents are cached. However, if a file goes missing\n        that was included via wildcard, this will not cause any problems\n        in subsequent builds.\n\n        If a statically included file goes missing however, the build\n        fails.\n        '
    self.create_files({
        'in': 'A',
        '1.css': '1',
        '2.css': '2',
    })
    bundle = self.mkbundle('in', '*.css', output='out')
    bundle.build()
    (self.get('out') == 'A12')
    os.unlink(self.path('1.css'))
    bundle.build()
    (self.get('out') == 'A1')
    os.unlink(self.path('in'))
    assert_raises(BundleError, bundle.build)

dataset/ETHPy150Open miracle2k/webassets/tests/test_bundle_build.py TestBuildVarious.test_deleted_source_files/original