1
0
mirror of https://github.com/django/django.git synced 2025-10-26 07:06:08 +00:00

Refs #35058 -- Added __repr__() to OGRGeomType.

This commit is contained in:
David Smith
2023-12-26 20:23:33 +00:00
committed by GitHub
parent 14917c9ae2
commit 2a2481f5a2
2 changed files with 6 additions and 0 deletions

View File

@@ -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