#NEWLINE# def test_intersection( self ) : #NEWLINE# #INDENT# 'Testing intersects() and intersection().' #NEWLINE# for i in xrange ( len ( self . geometries . topology_geoms ) ) : #NEWLINE# #INDENT# a = fromstr ( self . geometries . topology_geoms [ i ] . wkt_a ) #NEWLINE# b = fromstr ( self . geometries . topology_geoms [ i ] . wkt_b ) #NEWLINE# i1 = fromstr ( self . geometries . intersect_geoms [ i ] . wkt ) #NEWLINE# self . assertEqual ( True , a . intersects ( b ) ) #NEWLINE# i2 = a . intersection ( b ) #NEWLINE# self . assertEqual ( i1 , i2 ) #NEWLINE# self . assertEqual ( i1 , ( a & b ) ) #NEWLINE# a &= b #NEWLINE# self . assertEqual ( i1 , a )