#NEWLINE# def test_repr( self ) : #NEWLINE# #INDENT# opt = CmdOption ( { #NEWLINE# #INDENT# 'name' : 'opt1' , #NEWLINE# 'default' : '' , #NEWLINE# 'short' : 'o' , #NEWLINE# 'long' : 'other' , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( 'CmdOption(' in repr ( opt ) ) #NEWLINE# assert ( "'name':'opt1'" in repr ( opt ) ) #NEWLINE# assert ( "'short':'o'" in repr ( opt ) ) #NEWLINE# assert ( "'long':'other'" in repr ( opt ) )