""" Test capa problem. """ import textwrap import unittest from unittest.mock import MagicMock, patch import ddt import pytest from lxml import etree from markupsafe import Markup from openedx.core.djangolib.markup import HTML from xmodule.capa.correctmap import CorrectMap from xmodule.capa.responsetypes import LoncapaProblemError from xmodule.capa.tests.helpers import new_loncapa_problem from xmodule.capa.tests.test_util import UseUnsafeCodejail @ddt.ddt @UseUnsafeCodejail() class CAPAProblemTest(unittest.TestCase): """CAPA problem related tests""" @ddt.unpack @ddt.data( {"question": "Select the correct synonym of paranoid?"}, {"question": "Select the correct synonym of paranoid?"}, ) def test_label_and_description_inside_responsetype(self, question): """ Verify that * label is extracted *