'Testing HEX input/output.'

def test_hex(self):

    for g in self.geometries.hex_wkt:
        geom1 = OGRGeometry(g.wkt)
        self.assertEqual(g.hex.encode(), geom1.hex)
        geom2 = OGRGeometry(g.hex)
        self.assertEqual(geom1, geom2)
