#NEWLINE# def test_overwrite_defaults_convert_type( self , cmd ) : #NEWLINE# #INDENT# cmd . overwrite_defaults ( { #NEWLINE# #INDENT# 'num' : '9' , #NEWLINE# 'list' : 'foo, bar' , #NEWLINE# 'flag' : 'on' , #NEWLINE# #UNINDENT# } ) #NEWLINE# ( params , args ) = cmd . parse ( [ ] ) #NEWLINE# assert ( 9 == params [ 'num' ] ) #NEWLINE# assert ( [ 'foo' , 'bar' ] == params [ 'list' ] ) #NEWLINE# assert ( True == params [ 'flag' ] )