MCPcopy
hub / github.com/django/django / test_hex

Method test_hex

tests/gis_tests/gdal_tests/test_geom.py:99–106  ·  view source on GitHub ↗

Testing HEX input/output.

(self)

Source from the content-addressed store, hash-verified

97 self.assertEqual(exp_gml, geom.gml)
98
99 def test_hex(self):
100 "Testing HEX input/output."
101 for g in self.geometries.hex_wkt:
102 geom1 = OGRGeometry(g.wkt)
103 self.assertEqual(g.hex.encode(), geom1.hex)
104 # Constructing w/HEX
105 geom2 = OGRGeometry(g.hex)
106 self.assertEqual(geom1, geom2)
107
108 def test_wkb(self):
109 "Testing WKB input/output."

Callers

nothing calls this directly

Calls 2

OGRGeometryClass · 0.90
encodeMethod · 0.45

Tested by

no test coverage detected