'Test automatic transformation of rasters with srid different from the
field srid.'

def test_implicit_raster_transformation(self):

    rast = json.loads(JSON_RASTER)
    rast['srid'] = 3086
    r = RasterModel.objects.create(rast=rast)
    r.refresh_from_db()
    self.assertEqual(r.rast.srs.srid, 4326)
    expected = [(-87.9298551266551), 9.459646421449934e-06, 0.0, 23.94249275457565, 0.0, (-9.459646421449934e-06)]
    for (val, exp) in zip(r.rast.geotransform, expected):
        self.assertAlmostEqual(exp, val)
