diff options
| author | David Smith <39445562+smithdc1@users.noreply.github.com> | 2023-12-26 20:23:33 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-26 21:23:33 +0100 |
| commit | 2a2481f5a2179ac11947d92a097c9042bb57e17c (patch) | |
| tree | 5663c0dd0af5203bb8f6cdc3d8fec4390349a7a5 /tests/gis_tests | |
| parent | 14917c9ae272f47d23401100faa6cefa8e1728bf (diff) | |
Refs #35058 -- Added __repr__() to OGRGeomType.
Diffstat (limited to 'tests/gis_tests')
| -rw-r--r-- | tests/gis_tests/gdal_tests/test_geom.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/gis_tests/gdal_tests/test_geom.py b/tests/gis_tests/gdal_tests/test_geom.py index 175ec3c7da..913e465ef1 100644 --- a/tests/gis_tests/gdal_tests/test_geom.py +++ b/tests/gis_tests/gdal_tests/test_geom.py @@ -58,6 +58,9 @@ class OGRGeomTest(SimpleTestCase, TestDataMixin): self.assertEqual(0, gt.num) self.assertEqual("Unknown", gt.name) + def test_geom_type_repr(self): + self.assertEqual(repr(OGRGeomType("point")), "<OGRGeomType: Point>") + def test_geomtype_25d(self): "Testing OGRGeomType object with 25D types." wkb25bit = OGRGeomType.wkb25bit |
