#NEWLINE# def test_dump_options( self ) : #NEWLINE# #INDENT# msgs = [ ] #NEWLINE# def _announce( msg , level ) : #NEWLINE# #INDENT# msgs . append ( msg ) #NEWLINE# #UNINDENT# cmd = self . cmd #NEWLINE# cmd . announce = self #NEWLINE# cmd . option1 = 1 #NEWLINE# cmd . option2 = 1 #NEWLINE# cmd . user_options = [ ( 'option1' , '' , '' ) , ( 'option2' , '' , '' ) ] #NEWLINE# cmd . dump_options ( ) #NEWLINE# wanted = [ "command options for 'MyCmd':" , '  option1 = 1' , '  option2 = 1' ] #NEWLINE# self . assertEqual ( msgs , wanted )