#NEWLINE# def test_optgroup_select_multiple( self ) : #NEWLINE# #INDENT# widget = SelectMultiple ( choices = ( ( 'outer1' , 'Outer 1' ) , ( 'Group "1"' , ( ( 'inner1' , 'Inner 1' ) , ( 'inner2' , 'Inner 2' ) ) ) ) ) #NEWLINE# self . check_html ( widget , 'nestchoice' , [ 'outer1' , 'inner2' ] , html = '<select multiple="multiple" name="nestchoice">\n            <option value="outer1" selected="selected">Outer 1</option>\n            <optgroup label="Group &quot;1&quot;">\n            <option value="inner1">Inner 1</option>\n            <option value="inner2" selected="selected">Inner 2</option>\n            </optgroup>\n            </select>' )