#NEWLINE# def test_multipointfield( self ) : #NEWLINE# #INDENT# class PointForm ( forms . Form ) : #NEWLINE# #INDENT# p = forms . MultiPointField ( ) #NEWLINE# #UNINDENT# geom = self . geometries [ 'multipoint' ] #NEWLINE# form = PointForm ( data = { #NEWLINE# #INDENT# 'p' : geom , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertTextarea ( geom , form . as_p ( ) ) #NEWLINE# self . assertMapWidget ( key ) #NEWLINE# self . assertFalse ( PointForm ( ) . is_valid ( ) ) #NEWLINE# for invalid in [ geom for ( key , geom ) in self . geometries . items ( ) if ( key != 'multipoint' ) ] : #NEWLINE# #INDENT# self . assertFalse ( PointForm ( data = { #NEWLINE# #INDENT# 'p' : invalid . wkt , #NEWLINE# #UNINDENT# } ) . is_valid ( ) )