#NEWLINE# def test__basic_function__specification( self ) : #NEWLINE# #INDENT# def basic_function( name , severity = '!' ) : #NEWLINE# #INDENT# return ( ( 'Hello ' + name ) + severity ) #NEWLINE# #UNINDENT# spec = Specification . from_object ( basic_function ) #NEWLINE# assert ( len ( spec . __arguments__ ) == 2 ) #NEWLINE# assert ( tuple ( spec . __arguments__ ) == ( 'name' , 'severity' ) ) #NEWLINE# assert ( spec . _vargs == spec . _kwargs == False ) #NEWLINE# assert ( self . name . short is None ) #NEWLINE# assert ( spec . severity . short == 's' )