'Test that a broken error module doesn\'t cause an infinite loop'

@patch.object(ErrorModule, '__init__', Mock(side_effect=TestException))
def test_broken_error_module(self):

    with self.assertRaises(TestException):
        module = self.descriptor._xmodule
