'Verify that group label and labels for individual inputtypes are extracted correctly.'

@ddt.unpack
@ddt.data({'group_label': 'Choose    the    correct    color'}, {'group_label': 'Choose    the    <b>correct</b>    <mark>color</mark>'})
def test_multiple_inputtypes(self, group_label):

    input1_label = 'What    color    is    the    sky?'
    input2_label = 'What    color    are    pine    needles?'
    xml = '\n                                <problem>\n                                                <optionresponse>\n                                                                <label>{}</label>\n                                                                <optioninput    options="(\'yellow\',\'blue\',\'green\')"    correct="blue"    label="{}"/>\n                                                                <optioninput    options="(\'yellow\',\'blue\',\'green\')"    correct="green"    label="{}"/>\n                                                </optionresponse>\n                                </problem>\n                                '.format(group_label, input1_label, input2_label)
    problem = new_loncapa_problem(xml)
    self.assertEqual(problem.problem_data, {'1_2_1': {'group_label': group_label, 'label': input1_label, 'descriptions': {}}, '1_2_2': {'group_label': group_label, 'label': input2_label, 'descriptions': {}}})
