#NEWLINE# def test_cascaded_union( self ) : #NEWLINE# #INDENT# r = partial ( random . uniform , ( - 20.0 ) , 20.0 ) #NEWLINE# points = [ Point ( r ( ) , r ( ) ) for i in range ( 100 ) ] #NEWLINE# spots = [ p . buffer ( 2.5 ) for p in points ] #NEWLINE# u = cascaded_union ( spots ) #NEWLINE# self . assertTrue ( ( u . geom_type in ( 'Polygon' , 'MultiPolygon' ) ) )