web/lib/django/contrib/gis/geos/tests/test_geos_mutation.py
changeset 29 cc9b7e14412b
parent 0 0d40e90630ef
equal deleted inserted replaced
28:b758351d191f 29:cc9b7e14412b
     1 # Copyright (c) 2008-2009 Aryeh Leib Taurog, all rights reserved.
     1 # Copyright (c) 2008-2009 Aryeh Leib Taurog, all rights reserved.
     2 # Modified from original contribution by Aryeh Leib Taurog, which was
     2 # Modified from original contribution by Aryeh Leib Taurog, which was
     3 # released under the New BSD license.
     3 # released under the New BSD license.
     4 import unittest
     4 import unittest
       
     5 
       
     6 import django.utils.copycompat as copy
       
     7 
     5 from django.contrib.gis.geos import *
     8 from django.contrib.gis.geos import *
     6 from django.contrib.gis.geos.error import GEOSIndexError
     9 from django.contrib.gis.geos.error import GEOSIndexError
     7 import copy
       
     8 
    10 
     9 def getItem(o,i): return o[i]
    11 def getItem(o,i): return o[i]
    10 def delItem(o,i): del o[i]
    12 def delItem(o,i): del o[i]
    11 def setItem(o,i,v): o[i] = v
    13 def setItem(o,i,v): o[i] = v
    12 
    14