1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Replaced deprecated assertEquals() with assertEqual() in RasterFieldTest.

This commit is contained in:
Mariusz Felisiak 2020-03-07 21:31:13 +01:00
parent e12fea24f0
commit a3917c323f

View File

@ -68,8 +68,8 @@ class RasterFieldTest(TransactionTestCase):
rast=Func(F('rast'), function='ST_SetBandIsNoData'),
)
r.refresh_from_db()
self.assertEquals(r.rast.bands[0].data(), [[no_data]])
self.assertEquals(r.rast.bands[0].nodata_value, no_data)
self.assertEqual(r.rast.bands[0].data(), [[no_data]])
self.assertEqual(r.rast.bands[0].nodata_value, no_data)
def test_model_creation(self):
"""