MCPcopy
hub / github.com/django/django / test_wkb

Method test_wkb

tests/gis_tests/geos_tests/test_geos.py:143–148  ·  view source on GitHub ↗

Testing WKB output.

(self)

Source from the content-addressed store, hash-verified

141 GEOSGeometry(geom)
142
143 def test_wkb(self):
144 "Testing WKB output."
145 for g in self.geometries.hex_wkt:
146 geom = fromstr(g.wkt)
147 wkb = geom.wkb
148 self.assertEqual(wkb.hex().upper(), g.hex)
149
150 def test_create_hex(self):
151 "Testing creation from HEX."

Callers

nothing calls this directly

Calls 2

fromstrFunction · 0.90
hexMethod · 0.45

Tested by

no test coverage detected