#NEWLINE# def test_index_multigeom( self ) : #NEWLINE# #INDENT# c = [ ( float ( x ) , float ( ( - x ) ) ) for x in range ( 4 ) ] #NEWLINE# g = geometry . MultiPoint ( c ) #NEWLINE# for i in range ( ( - 4 ) , 4 ) : #NEWLINE# #INDENT# self . assertTrue ( g [ i ] . equals ( geometry . Point ( c [ i ] ) ) ) #NEWLINE# #UNINDENT# self . assertRaises ( IndexError , ( lambda : g [ 4 ] ) ) #NEWLINE# self . assertRaises ( IndexError , ( lambda : g [ ( - 5 ) ] ) )