MCPcopy
hub / github.com/django/django / test_touches

Method test_touches

tests/gis_tests/gdal_tests/test_geom.py:601–610  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

599 )
600
601 def test_touches(self):
602 self.assertIs(
603 OGRGeometry("POLYGON ((0 0, 0 1, 1 1, 1 0, 0 0))").touches(
604 OGRGeometry("LINESTRING(0 2, 2 0)")
605 ),
606 True,
607 )
608 self.assertIs(
609 OGRGeometry("POINT(0 0)").touches(OGRGeometry("POINT(0 1)")), False
610 )
611
612 def test_within(self):
613 self.assertIs(

Callers

nothing calls this directly

Calls 2

OGRGeometryClass · 0.90
touchesMethod · 0.45

Tested by

no test coverage detected