mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #27579 -- Added aliases for Python 3's assertion names in SimpleTestCase.
This commit is contained in:
@@ -60,7 +60,7 @@ if HAS_GDAL:
|
||||
|
||||
|
||||
@unittest.skipUnless(HAS_GDAL, "GDAL is required")
|
||||
class GDALRasterTests(unittest.TestCase):
|
||||
class GDALRasterTests(SimpleTestCase):
|
||||
"""
|
||||
Test a GDALRaster instance created from a file (GeoTiff).
|
||||
"""
|
||||
@@ -71,7 +71,7 @@ class GDALRasterTests(unittest.TestCase):
|
||||
|
||||
def test_rs_name_repr(self):
|
||||
self.assertEqual(self.rs_path, self.rs.name)
|
||||
six.assertRegex(self, repr(self.rs), r"<Raster object at 0x\w+>")
|
||||
self.assertRegex(repr(self.rs), r"<Raster object at 0x\w+>")
|
||||
|
||||
def test_rs_driver(self):
|
||||
self.assertEqual(self.rs.driver.name, 'GTiff')
|
||||
|
||||
Reference in New Issue
Block a user