#NEWLINE# def test_defaults_as_arguments( self ) : #NEWLINE# #INDENT# target = mock . Mock ( ) #NEWLINE# @ begin . convert ( port = int , debug = begin . utils . tobool ) #NEWLINE# def func( host = '0.0.0.0' , port = 80 , debug = False ) : #NEWLINE# #INDENT# target ( host , port , debug ) #NEWLINE# #UNINDENT# func ( '0.0.0.0' , '8080' , False ) #NEWLINE# self . assertEqual ( func . call_args [ 0 ] , ( '0.0.0.0' , 8080 , False ) )