""" Test capa problem. """ import textwrap import unittest import pytest import ddt from lxml import etree from markupsafe import Markup from mock import patch from xmodule.capa.responsetypes import LoncapaProblemError from xmodule.capa.tests.helpers import new_loncapa_problem from openedx.core.djangolib.markup import HTML @ddt.ddt 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 *