'Test that selected options are selected.'

def test_option_selection(self):

    self.context['options_value'] = [2]
    self.context['options'] = [{'id': id_num, 'choice': 'correct', 'description': '<p>Unescaped    <b>HTML    {0}</b></p>'.format(id_num)} for id_num in range(5)]
    xml = self.render_to_xml(self.context)
    for id_num in range(5):
        xpath = "//span[@data-id='{0}']/p/b".format(id_num)
        self.assert_has_text(xml, xpath, 'HTML    {0}'.format(id_num), exact=False)
    xpath = "//span[contains(@class,'selected')]/p/b"
    self.assert_has_text(xml, xpath, 'HTML    2', exact=False)
