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

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

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