'A fixed \'island\' choice not at the head or tail end gets lumped into the tail end.'

def test_shuffle_island(self):

    xml_str = textwrap.dedent('\n                                                <problem>\n                                                <multiplechoiceresponse>\n                                                        <choicegroup    type="MultipleChoice"    shuffle="true">\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                                ')
    problem = new_loncapa_problem(xml_str, seed=0)
    the_html = problem.get_html()
    self.assertRegexpMatches(the_html, "<div>.*\\[.*'A'.*'Mid'.*'Mid'.*'C'.*'D'.*\\].*</div>")
