diff options
| author | Alasdair Nicol <alasdair@thenicols.net> | 2015-04-27 15:59:16 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-04-28 09:31:04 -0400 |
| commit | eaeea6f94701547ce1b50dbcf5cf71460e9e4c91 (patch) | |
| tree | 079b87aab13fc4db25f88ad2c98e68512c7bc39a /tests/gis_tests/test_spatialrefsys.py | |
| parent | 3b133ffb8bdf1e0e4c3f2c3af8a62376da643350 (diff) | |
Fixed #24714 -- Used more specific assertions than assertEqual in tests.
Diffstat (limited to 'tests/gis_tests/test_spatialrefsys.py')
| -rw-r--r-- | tests/gis_tests/test_spatialrefsys.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/gis_tests/test_spatialrefsys.py b/tests/gis_tests/test_spatialrefsys.py index 66e30f3de1..e0c593ff4a 100644 --- a/tests/gis_tests/test_spatialrefsys.py +++ b/tests/gis_tests/test_spatialrefsys.py @@ -56,7 +56,7 @@ class SpatialRefSysTest(unittest.TestCase): # the testing with the 'startswith' flag. auth_name, oracle_flag = sd['auth_name'] if postgis or (oracle and oracle_flag): - self.assertEqual(True, srs.auth_name.startswith(auth_name)) + self.assertTrue(srs.auth_name.startswith(auth_name)) self.assertEqual(sd['auth_srid'], srs.auth_srid) @@ -71,14 +71,14 @@ class SpatialRefSysTest(unittest.TestCase): """ for sd in test_srs: sr = SpatialRefSys.objects.get(srid=sd['srid']) - self.assertEqual(True, sr.spheroid.startswith(sd['spheroid'])) + self.assertTrue(sr.spheroid.startswith(sd['spheroid'])) self.assertEqual(sd['geographic'], sr.geographic) self.assertEqual(sd['projected'], sr.projected) if not (spatialite and not sd['spatialite']): # Can't get 'NAD83 / Texas South Central' from PROJ.4 string # on SpatiaLite - self.assertEqual(True, sr.name.startswith(sd['name'])) + self.assertTrue(sr.name.startswith(sd['name'])) # Testing the SpatialReference object directly. if postgis or spatialite: |
