'Verify that label is extracted correctly.
This is the case when we have a markdown problem with multiple-questions.
In this case when markdown is converted to xml, there will be no label
tag and label attribute inside responsetype. But we have a label tag
before the responsetype.'

@ddt.unpack
@ddt.data({'question1': 'People    who    say    they    have    nothing    to    ____    almost    always    do?', 'question2': 'Select    the    correct    synonym    of    paranoid?'}, {'question1': '<b>People</b>    who    say    they    have    <mark>nothing</mark>    to    ____    almost    always    do?', 'question2': 'Select    the    <sup>correct</sup>    synonym    of    <mark>paranoid</mark>?'})
def test_neither_label_tag_nor_attribute(self, question1, question2):

    xml = '\n                                <problem>\n                                                <p>Be    sure    to    check    your    spelling.</p>\n                                                <label>{}</label>\n                                                <stringresponse    answer="hide"    type="ci">\n                                                                <textline    size="40"/>\n                                                </stringresponse>\n                                                <choiceresponse>\n                                                                <label>{}</label>\n                                                                <checkboxgroup>\n                                                                                <choice    correct="true">over-suspicious</choice>\n                                                                                <choice    correct="false">funny</choice>\n                                                                </checkboxgroup>\n                                                </choiceresponse>\n                                </problem>\n                                '.format(question1, question2)
    problem = new_loncapa_problem(xml)
    self.assertEqual(problem.problem_data, {'1_2_1': {'label': question1, 'descriptions': {}}, '1_3_1': {'label': question2, 'descriptions': {}}})
    for question in (question1, question2):
        self.assertEqual(len(problem.tree.xpath('//label[text()="{}"]'.format(question))), 0)
