#NEWLINE# def test_initial( self ) : #NEWLINE# #INDENT# class _Form ( Form ) : #NEWLINE# #INDENT# fields = [ FieldBlock ( 'field block' , [ Field ( 'number' , convs . Int ( ) ) ] ) ] #NEWLINE# #UNINDENT# env = AppEnvironment . create ( ) #NEWLINE# form = _Form ( env , initial = { #NEWLINE# #INDENT# 'number' : 3 , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( form . raw_data , MultiDict ( [ ( 'number' , '3' ) ] ) ) #NEWLINE# self . assertEqual ( self . python_data , { #NEWLINE# #INDENT# 'number' : 3 , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( form . get_field ( 'number' ) . clean_value , 3 )