'Verify that customresponse problem with multiple textline
and formulaequationinput inputtypes is rendered correctly.'

@ddt.unpack
@ddt.data({'inputtype': 'textline'}, {'inputtype': 'formulaequationinput'})
def test_customresponse(self, inputtype):

    group_label = 'Enter    two    integers    that    sum    to    10.'
    input1_label = 'Integer    1'
    input2_label = 'Integer    2'
    xml = textwrap.dedent('\n                                <problem>\n                                                <customresponse    cfn="test_add_to_ten">\n                                <script    type="loncapa/python">\n                                def    test_add_to_ten(expect,    ans):\n                                                return    test_add(10,    ans)\n                                </script>\n                                                                <label>{}</label>\n                                                                <{inputtype}    size="40"    correct_answer="3"    label="{}"    /><br/>\n                                                                <{inputtype}    size="40"    correct_answer="7"    label="{}"    />\n                                                </customresponse>\n                                </problem>\n                                '.format(group_label, input1_label, input2_label, inputtype=inputtype))
    problem = self.capa_problem(xml)
    self.assert_problem_html(problem.get_html(), group_label, input1_label, input2_label)
