def set_srs(self, srs):
        if isinstance(srs, SpatialReference):
            srs_ptr = clone_srs(srs._ptr)
        elif isinstance(srs, (int, long, basestring)):
            sr = SpatialReference(srs)
            srs_ptr = clone_srs(sr._ptr)
        else:
            raise TypeError('Cannot assign spatial reference with object of type: %s' % type(srs))
        assign_srs(self._ptr, srs_ptr)
Set up test framework.
dataset/ETHPy150Open dcramer/django-compositepks/django/contrib/gis/gdal/geometries.py/OGRGeometry.set_srs--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/test_utils.py/NDBBaseTest.setUp