'Testing GeometryCollection handling of other collections.'

def test20b_collections_of_collections(self):

    coll = [mp.wkt for mp in self.geometries.multipolygons if mp.valid]
    coll.extend([mls.wkt for mls in self.geometries.multilinestrings])
    coll.extend([p.wkt for p in self.geometries.polygons])
    coll.extend([mp.wkt for mp in self.geometries.multipoints])
    gc_wkt = ('GEOMETRYCOLLECTION(%s)' % ','.join(coll))
    gc1 = GEOSGeometry(gc_wkt)
    gc2 = GeometryCollection(*tuple((g for g in gc1)))
    self.assertEqual(gc1, gc2)
