MCPcopy
hub / github.com/django/django / test09_authority

Method test09_authority

tests/gis_tests/gdal_tests/test_srs.py:285–292  ·  view source on GitHub ↗

Testing the authority name & code routines.

(self)

Source from the content-addressed store, hash-verified

283 self.assertAlmostEqual(s.lin_units, srs.linear_units, 9)
284
285 def test09_authority(self):
286 "Testing the authority name & code routines."
287 for s in srlist:
288 if hasattr(s, "auth"):
289 srs = SpatialReference(s.wkt)
290 for target, tup in s.auth.items():
291 self.assertEqual(tup[0], srs.auth_name(target))
292 self.assertEqual(tup[1], srs.auth_code(target))
293
294 def test10_attributes(self):
295 "Testing the attribute retrieval routines."

Callers

nothing calls this directly

Calls 4

auth_nameMethod · 0.95
auth_codeMethod · 0.95
SpatialReferenceClass · 0.90
itemsMethod · 0.45

Tested by

no test coverage detected