def test_invalid_debug_value(self):
        # On the bundle level
        b = self.mkbundle('a', 'b', output='out', debug="invalid")
        assert_raises(BundleError, b.build)

        # On the environment level
        self.env.debug = "invalid"
        b = self.mkbundle('a', 'b', output='out')
        assert_raises(BundleError, b.build)
Test exception Bundle.build() throws if debug is an invalid value.
dataset/ETHPy150Open miracle2k/webassets/tests/test_bundle_build.py/TestBuildWithVariousDebugOptions.test_invalid_debug_value