#NEWLINE# def test_copy( self ) : #NEWLINE# #INDENT# 'Testing use with the Python `copy` module.' #NEWLINE# import copy #NEWLINE# poly = GEOSGeometry ( 'POLYGON((0 0, 0 23, 23 23, 23 0, 0 0), (5 5, 5 10, 10 10, 10 5, 5 5))' ) #NEWLINE# cpy1 = copy . copy ( poly ) #NEWLINE# cpy2 = copy . deepcopy ( poly ) #NEWLINE# self . assertNotEqual ( poly . _ptr , cpy1 . _ptr ) #NEWLINE# self . assertNotEqual ( poly . _ptr , cpy2 . _ptr )