#NEWLINE# def test_difference( self ) : #NEWLINE# #INDENT# 'Testing difference().' #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# d1 = fromstr ( self . geometries . diff_geoms [ i ] . wkt ) #NEWLINE# d2 = a . difference ( b ) #NEWLINE# self . assertEqual ( d1 , d2 ) #NEWLINE# self . assertEqual ( d1 , ( a - b ) ) #NEWLINE# a -= b #NEWLINE# self . assertEqual ( d1 , a )