#NEWLINE# def test_fields( self ) : #NEWLINE# #INDENT# fields = [ PrimaryKeyField ( ) , CharField ( ) , DateField ( ) , FloatField ( ) , CharField ( ) ] #NEWLINE# ModelClass = self . load ( self . header , self . simple , self . float_sal , fields = fields ) #NEWLINE# self . assertEqual ( list ( map ( type , fields ) ) , list ( map ( type , ModelClass . _meta . sorted_fields ) ) ) #NEWLINE# self . assertData ( ModelClass , [ ( 10 , 'F1 L1' , date ( 1983 , 1 , 1 ) , 10000.0 , 't' ) , ( 20 , 'F2 L2' , date ( 1983 , 1 , 2 ) , 20000.5 , 'f' ) ] )