'Choices can be nested one level in order to create HTML optgroups.'

def test_choices_optgroup(self):

    self.check_html(self.nested_widget, 'nestchoice', None, html='<select    name="nestchoice">\n                                                <option    value="outer1">Outer    1</option>\n                                                <optgroup    label="Group    &quot;1&quot;">\n                                                <option    value="inner1">Inner    1</option>\n                                                <option    value="inner2">Inner    2</option>\n                                                </optgroup>\n                                                </select>')
