#NEWLINE# def test_relate_pattern( self ) : #NEWLINE# #INDENT# 'Testing relate() and relate_pattern().' #NEWLINE# g = fromstr ( 'POINT (0 0)' ) #NEWLINE# self . assertRaises ( GEOSException , rg . relate_pattern , 0 , 'invalid pattern, yo' ) #NEWLINE# for rg in self . geometries . relate_geoms : #NEWLINE# #INDENT# a = fromstr ( rg . wkt_a ) #NEWLINE# b = fromstr ( rg . wkt_b ) #NEWLINE# self . assertEqual ( rg . result , a . relate_pattern ( b , rg . pattern ) ) #NEWLINE# self . assertEqual ( rg . pattern , a . relate ( b ) )