'Testing WKB input/output.'

def test_wkb(self):

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