Table Of Contents

Previous topic

shapely.speedups package

This Page

shapely.tests package

Submodules

shapely.tests.test_affinity module

class shapely.tests.test_affinity.AffineTestCase(methodName='runTest')

Bases: unittest.case.TestCase

test_affine_2d()
test_affine_3d()
test_affine_geom_types()
test_affine_params()
class shapely.tests.test_affinity.TransformOpsTestCase(methodName='runTest')

Bases: unittest.case.TestCase

test_rotate()
test_scale()
test_skew()
test_translate()
shapely.tests.test_affinity.test_suite()

shapely.tests.test_box module

class shapely.tests.test_box.BoxTestCase(methodName='runTest')

Bases: unittest.case.TestCase

test_ccw()
test_ccw_default()
test_cw()
shapely.tests.test_box.test_suite()

shapely.tests.test_cga module

class shapely.tests.test_cga.PolygonOrienterTestCase(methodName='runTest')

Bases: unittest.case.TestCase

test_holes()
test_no_holes()
class shapely.tests.test_cga.RingOrientationTestCase(methodName='runTest')

Bases: unittest.case.TestCase

test_ccw()
test_cw()
shapely.tests.test_cga.test_suite()

shapely.tests.test_collection module

class shapely.tests.test_collection.CollectionTestCase(methodName='runTest')

Bases: unittest.case.TestCase

test_array_interface()
test_child_with_deleted_parent()
shapely.tests.test_collection.test_suite()

shapely.tests.test_delegated module

class shapely.tests.test_delegated.Geometry

Bases: object

foo
impl = <shapely.impl.BaseImpl object at 0x109a96890>
class shapely.tests.test_delegated.WrapperTestCase(methodName='runTest')

Bases: unittest.case.TestCase

When the backend has no support for a method, we get an AttributeError

test_defaultimpl()
test_delegated()
shapely.tests.test_delegated.test_suite()

shapely.tests.test_dlls module

class shapely.tests.test_dlls.LoadingTestCase(methodName='runTest')

Bases: unittest.case.TestCase

test_fallbacks()
test_load()
shapely.tests.test_dlls.test_suite()

shapely.tests.test_doctests module

shapely.tests.test_doctests.list_doctests()
shapely.tests.test_doctests.open_file(filename, mode='r')

Helper function to open files from within the tests package.

shapely.tests.test_doctests.setUp(test)
shapely.tests.test_doctests.test_suite()

shapely.tests.test_emptiness module

class shapely.tests.test_emptiness.EmptinessTestCase(methodName='runTest')

Bases: unittest.case.TestCase

test_empty_base()
test_empty_geometry_collection()
test_empty_linear_ring()
test_empty_linestring()
test_empty_multilinestring()
test_empty_multipoint()
test_empty_multipolygon()
test_empty_point()
test_empty_polygon()
test_emptying_point()
test_none_geom()
shapely.tests.test_emptiness.test_suite()

shapely.tests.test_equality module

class shapely.tests.test_equality.PointEqualityTestCase(methodName='runTest')

Bases: unittest.case.TestCase

test_almost_equals()
test_almost_equals_default()
test_equals_exact()
shapely.tests.test_equality.test_suite()

shapely.tests.test_geointerface module

class shapely.tests.test_geointerface.GeoInterfaceTestCase(methodName='runTest')

Bases: unittest.case.TestCase

test_geointerface()
class shapely.tests.test_geointerface.GeoThing(d)

Bases: object

shapely.tests.test_geointerface.test_suite()

shapely.tests.test_geomseq module

class shapely.tests.test_geomseq.MultiLineTestCase(methodName='runTest')

Bases: unittest.case.TestCase

test_array_interface()
shapely.tests.test_geomseq.test_suite()

shapely.tests.test_getitem module

class shapely.tests.test_getitem.CoordsGetItemTestCase(methodName='runTest')

Bases: unittest.case.TestCase

test_index_2d_coords()
test_index_3d_coords()
test_index_coords_misc()
test_slice_2d_coords()
test_slice_3d_coords()
class shapely.tests.test_getitem.LinearRingGetItemTestCase(methodName='runTest')

Bases: unittest.case.TestCase

test_index_linearring()
test_index_linearring_misc()
test_slice_linearring()
class shapely.tests.test_getitem.MultiGeomGetItemTestCase(methodName='runTest')

Bases: unittest.case.TestCase

test_index_multigeom()
test_index_multigeom_misc()
test_slice_multigeom()
shapely.tests.test_getitem.test_suite()

shapely.tests.test_invalid_geometries module

Test recovery from operation on invalid geometries

class shapely.tests.test_invalid_geometries.InvalidGeometriesTestCase(methodName='runTest')

Bases: unittest.case.TestCase

test_invalid_intersection()
shapely.tests.test_invalid_geometries.test_suite()

shapely.tests.test_iterops module

Test operator iterations

class shapely.tests.test_iterops.IterOpsTestCase(methodName='runTest')

Bases: unittest.case.TestCase

test_iterops()
shapely.tests.test_iterops.test_suite()

shapely.tests.test_linear_referencing module

class shapely.tests.test_linear_referencing.LinearReferencingTestCase(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
test_line1_interpolate()
test_line1_project()
test_line2_interpolate()
test_line2_project()
test_line_ends_interpolate()
test_multiline_interpolate()
test_multiline_project()
test_not_on_line_project()
test_not_supported_project()
shapely.tests.test_linear_referencing.test_suite()

shapely.tests.test_linemerge module

class shapely.tests.test_linemerge.LineMergeTestCase(methodName='runTest')

Bases: unittest.case.TestCase

test_linemerge()
shapely.tests.test_linemerge.test_suite()

shapely.tests.test_linestring module

class shapely.tests.test_linestring.LineStringTestCase(methodName='runTest')

Bases: unittest.case.TestCase

test_linestring()
test_numpy()
shapely.tests.test_linestring.test_suite()

shapely.tests.test_locale module

Test locale independence of WKT

class shapely.tests.test_locale.LocaleTestCase(methodName='runTest')

Bases: unittest.case.TestCase

test_wkt_locale()
shapely.tests.test_locale.setUpModule()
shapely.tests.test_locale.tearDownModule()
shapely.tests.test_locale.test_suite()

shapely.tests.test_mapping module

class shapely.tests.test_mapping.MappingTestCase(methodName='runTest')

Bases: unittest.case.TestCase

test_point()
shapely.tests.test_mapping.test_suite()

shapely.tests.test_multilinestring module

class shapely.tests.test_multilinestring.MultiLineStringTestCase(methodName='runTest')

Bases: unittest.case.TestCase

test_multipoint()
test_numpy()
shapely.tests.test_multilinestring.test_suite()

shapely.tests.test_multipoint module

class shapely.tests.test_multipoint.MultiPointTestCase(methodName='runTest')

Bases: unittest.case.TestCase

test_multipoint()
test_numpy()
shapely.tests.test_multipoint.test_suite()

shapely.tests.test_multipolygon module

class shapely.tests.test_multipolygon.MultiPolygonTestCase(methodName='runTest')

Bases: unittest.case.TestCase

test_multipolygon()
shapely.tests.test_multipolygon.test_suite()

shapely.tests.test_ndarrays module

class shapely.tests.test_ndarrays.TransposeTestCase(methodName='runTest')

Bases: unittest.case.TestCase

test_linestring()
test_multipoint()
test_polygon()
shapely.tests.test_ndarrays.test_suite()

shapely.tests.test_operations module

class shapely.tests.test_operations.OperationsTestCase(methodName='runTest')

Bases: unittest.case.TestCase

test_operations()
shapely.tests.test_operations.test_suite()

shapely.tests.test_operators module

class shapely.tests.test_operators.OperatorsTestCase(methodName='runTest')

Bases: unittest.case.TestCase

test_point()
shapely.tests.test_operators.test_suite()

shapely.tests.test_persist module

Persistence tests

class shapely.tests.test_persist.PersistTestCase(methodName='runTest')

Bases: unittest.case.TestCase

test_pickle()
test_wkb()
test_wkt()
shapely.tests.test_persist.test_suite()

shapely.tests.test_pickle module

class shapely.tests.test_pickle.TwoDeeTestCase(methodName='runTest')

Bases: unittest.case.TestCase

test_linestring()
shapely.tests.test_pickle.test_suite()

shapely.tests.test_point module

class shapely.tests.test_point.LineStringTestCase(methodName='runTest')

Bases: unittest.case.TestCase

test_numpy()
test_point()
shapely.tests.test_point.test_suite()

shapely.tests.test_polygon module

Polygons and Linear Rings

class shapely.tests.test_polygon.PolygonTestCase(methodName='runTest')

Bases: unittest.case.TestCase

test_attribute_chains()
test_dimensions()
test_numpy()
test_polygon()
shapely.tests.test_polygon.test_suite()

shapely.tests.test_polygonize module

class shapely.tests.test_polygonize.PolygonizeTestCase(methodName='runTest')

Bases: unittest.case.TestCase

test_polygonize()
test_polygonize_full()
shapely.tests.test_polygonize.test_suite()

shapely.tests.test_predicates module

Test GEOS predicates

class shapely.tests.test_predicates.PredicatesTestCase(methodName='runTest')

Bases: unittest.case.TestCase

test_binary_predicates()
test_unary_predicates()
shapely.tests.test_predicates.test_suite()

shapely.tests.test_prepared module

class shapely.tests.test_prepared.PreparedGeometryTestCase(methodName='runTest')

Bases: unittest.case.TestCase

test_op_not_allowed()
test_predicate_not_allowed()
test_prepared()
shapely.tests.test_prepared.test_suite()

shapely.tests.test_products_z module

class shapely.tests.test_products_z.ProductZTestCase(methodName='runTest')

Bases: unittest.case.TestCase

test_line_intersection()
shapely.tests.test_products_z.test_suite()

shapely.tests.test_singularity module

class shapely.tests.test_singularity.PolygonTestCase(methodName='runTest')

Bases: unittest.case.TestCase

test_polygon_3()
test_polygon_5()
shapely.tests.test_singularity.test_suite()

shapely.tests.test_speedups module

class shapely.tests.test_speedups.SpeedupsTestCase(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
tearDown()
test_create_linestring()
test_create_polygon()
test_create_polygon_from_linestring()
shapely.tests.test_speedups.test_suite()

shapely.tests.test_styles module

class shapely.tests.test_styles.StylesTest(methodName='runTest')

Bases: unittest.case.TestCase

test_cap()
test_join()
shapely.tests.test_styles.test_suite()

shapely.tests.test_transform module

class shapely.tests.test_transform.IdentityTestCase(methodName='runTest')

Bases: unittest.case.TestCase

New geometry/coordseq method ‘xy’ makes numpy interop easier

func(x, y, z=None)
test_empty()
test_line()
test_multipolygon()
test_point()
test_polygon()
class shapely.tests.test_transform.LambdaTestCase(methodName='runTest')

Bases: unittest.case.TestCase

New geometry/coordseq method ‘xy’ makes numpy interop easier

test_line()
test_multipolygon()
test_point()
test_polygon()
shapely.tests.test_transform.test_suite()

shapely.tests.test_union module

class shapely.tests.test_union.UnionTestCase(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
test_cascaded_union()
test_unary_union()
test_unary_union_multi()
shapely.tests.test_union.halton(base)

Returns an iterator over an infinite Halton sequence

shapely.tests.test_union.test_suite()

shapely.tests.test_validation module

class shapely.tests.test_validation.ValidationTestCase(methodName='runTest')

Bases: unittest.case.TestCase

test_valid()
shapely.tests.test_validation.test_suite()

shapely.tests.test_xy module

class shapely.tests.test_xy.XYTestCase(methodName='runTest')

Bases: unittest.case.TestCase

New geometry/coordseq method ‘xy’ makes numpy interop easier

test_arrays()
shapely.tests.test_xy.test_suite()

shapely.tests.threading_test module

shapely.tests.threading_test.main()
shapely.tests.threading_test.runShapelyBuilding(num)

Module contents

shapely.tests.test_suite()