#NEWLINE# def test_getas__with_unknown_param_returns_default_value( self ) : #NEWLINE# #INDENT# userdata = UserData ( ) #NEWLINE# assert ( 'param' not in userdata ) , 'ENSURE: unknown param' #NEWLINE# value = userdata . getas ( int , 'param' , 123 ) #NEWLINE# assert isinstance ( value , int ) #NEWLINE# self . assertEqual ( value , 123 )