#NEWLINE# def test_check_value_type( self ) : #NEWLINE# #INDENT# 'Pass file value to ordinary Field' #NEWLINE# class F ( Form ) : #NEWLINE# #INDENT# fields = [ Field ( 'inp' ) ] #NEWLINE# #UNINDENT# request = Request . blank ( '/' , POST = dict ( inp = ( 'foo.txt' , 'ggg' ) ) ) #NEWLINE# env = AppEnvironment . create ( ) #NEWLINE# form = F ( form ) #NEWLINE# self . assertEqual ( form . accept ( request . POST ) , False ) #NEWLINE# self . assertEqual ( form . errors . keys ( ) , [ 'inp' ] )