def test_oracle_raises_original_error(self):
        class BadFormElement(TextBoxElement):

            def value(self, layer=None, view=None):
                raise AttributeError('Inner Error')

        oracle = SettingsOracle({'bad_form': BadFormElement('str("text")')})

        try:
            oracle('bad_form')
            assert False
        except __HOLE__ as err:
            assert 'Inner Error' in err.args
dataset/ETHPy150Open glue-viz/glue/glue/viewers/custom/qt/tests/test_custom_viewer.py/TestSettingsOracle.test_oracle_raises_original_error