test_multi.py 297 B

1234567891011
  1. import numpy as np
  2. test_int_types = [int, np.int16, np.int32, np.int64]
  3. class MultiGeometryTestCase:
  4. def subgeom_access_test(self, cls, geoms):
  5. geom = cls(geoms)
  6. for t in test_int_types:
  7. for i, g in enumerate(geoms):
  8. assert geom.geoms[t(i)] == g