

def test_transform(self):
    sql = self.qs._transform(self.srid)
    col = ('"%s"."%s"' % (self.qs.model._meta.db_table, self.qs.geo_field.column))
    expected = ('Transform(%s, %s)' % (col, self.srid))
    self.assertEqual(sql, expected)
    self.assertEqual(self.qs.query.get_context('transformed_srid'), self.srid)

dataset/ETHPy150Open bkg/django-spillway/tests/test_query.py GeoQuerySetTestCase.test_transform/original