#NEWLINE# def test_eq( self ) : #NEWLINE# #INDENT# 'Testing equivalence.' #NEWLINE# p = fromstr ( 'POINT(5 23)' ) #NEWLINE# self . assertEqual ( p , p . wkt ) #NEWLINE# self . assertNotEqual ( p , 'foo' ) #NEWLINE# ls = fromstr ( 'LINESTRING(0 0, 1 1, 5 5)' ) #NEWLINE# self . assertEqual ( ls , ls . wkt ) #NEWLINE# self . assertNotEqual ( p , 'bar' ) #NEWLINE# for g in ( p , ls ) : #NEWLINE# #INDENT# self . assertNotEqual ( g , None ) #NEWLINE# self . assertNotEqual ( g , { #NEWLINE# #INDENT# 'foo' : 'bar' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertNotEqual ( g , False )