#NEWLINE# def test_with_default( self ) : #NEWLINE# #INDENT# field = fields . Integer ( default = 42 ) #NEWLINE# assert ( not field . required ) #NEWLINE# assert_equal ( field . __schema__ , { #NEWLINE# #INDENT# 'type' : 'integer' , #NEWLINE# 'default' : 42 , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assert_field ( field , None , 42 )