'For a problem with multiple questions verify that for each question
* label is extracted
* descriptions info is constructed
* <label> tag is removed to avoid duplication'

def test_multiple_questions_problem(self):

    xml = '\n                                <problem>\n                                                <choiceresponse>\n                                                                <label>Select    the    correct    synonym    of    paranoid?</label>\n                                                                <description>Only    the    paranoid    survive.</description>\n                                                                <checkboxgroup>\n                                                                                <choice    correct="true">over-suspicious</choice>\n                                                                                <choice    correct="false">funny</choice>\n                                                                </checkboxgroup>\n                                                </choiceresponse>\n                                                <multiplechoiceresponse>\n                                                                <p>one    more    question</p>\n                                                                <label>What    Apple    device    competed    with    the    portable    CD    player?</label>\n                                                                <description>Device    looks    like    an    egg    plant.</description>\n                                                                <choicegroup    type="MultipleChoice">\n                                                                                <choice    correct="false">The    iPad</choice>\n                                                                                <choice    correct="false">Napster</choice>\n                                                                                <choice    correct="true">The    iPod</choice>\n                                                                                <choice    correct="false">The    vegetable    peeler</choice>\n                                                                </choicegroup>\n                                                </multiplechoiceresponse>\n                                </problem>\n                                '
    problem = new_loncapa_problem(xml)
    self.assertEqual(problem.problem_data, {'1_2_1': {'label': 'Select    the    correct    synonym    of    paranoid?', 'descriptions': {'description_1_1_1': 'Only    the    paranoid    survive.'}}, '1_3_1': {'label': 'What    Apple    device    competed    with    the    portable    CD    player?', 'descriptions': {'description_1_2_1': 'Device    looks    like    an    egg    plant.'}}})
    self.assertEqual(len(problem.tree.xpath('//label')), 0)
