#NEWLINE# def test01a_3d_layermapping( self ) : #NEWLINE# #INDENT# 'Testing LayerMapping on 3D models.' #NEWLINE# from . models import Point2D , Point3D #NEWLINE# point_mapping = { #NEWLINE# #INDENT# 'point' : 'POINT' , #NEWLINE# #UNINDENT# } #NEWLINE# mpoint_mapping = { #NEWLINE# #INDENT# 'mpoint' : 'MULTIPOINT' , #NEWLINE# #UNINDENT# } #NEWLINE# lm = LayerMapping ( Point2D , vrt_file , point_mapping , transform = False ) #NEWLINE# lm . save ( ) #NEWLINE# self . assertEqual ( 3 , Point2D . objects . count ( ) ) #NEWLINE# self . assertRaises ( LayerMapError , LayerMapping , Point3D , city_file , point_mapping , transform = False ) #NEWLINE# lm = LayerMapping ( Point3D , vrt_file , point_mapping , transform = False ) #NEWLINE# lm . save ( ) #NEWLINE# self . assertEqual ( 3 , Point3D . objects . count ( ) ) #NEWLINE# lm = LayerMapping ( MultiPoint3D , vrt_file , mpoint_mapping , transform = False ) #NEWLINE# lm . save ( ) #NEWLINE# self . assertEqual ( 3 , MultiPoint3D . objects . count ( ) )