'Raise error if shuffle and answer-pool are both used.'

def test_shuffle_not_with_answerpool(self):

    xml_str = textwrap.dedent('\n                                                <problem>\n                                                <multiplechoiceresponse>\n                                                        <choicegroup    type="MultipleChoice"    shuffle="true"    answer-pool="4">\n                                                                <choice    correct="false"    fixed="true">A</choice>\n                                                                <choice    correct="false">Mid</choice>\n                                                                <choice    correct="true"    fixed="true">C</choice>\n                                                                <choice    correct="False">Mid</choice>\n                                                                <choice    correct="false"    fixed="true">D</choice>\n                                                        </choicegroup>\n                                                </multiplechoiceresponse>\n                                                </problem>\n                                ')
    with self.assertRaisesRegexp(LoncapaProblemError, 'shuffle    and    answer-pool'):
        new_loncapa_problem(xml_str)
