MCPcopy
hub / github.com/django/django / test_multilinestringfield

Method test_multilinestringfield

tests/gis_tests/geoapp/tests.py:277–284  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

275
276class SaveLoadTests(TestCase):
277 def test_multilinestringfield(self):
278 geom = MultiLineString(
279 LineString((0, 0), (1, 1), (5, 5)),
280 LineString((0, 0), (0, 5), (5, 5), (5, 0), (0, 0)),
281 )
282 obj = Lines.objects.create(geom=geom)
283 obj.refresh_from_db()
284 self.assertEqual(obj.geom.tuple, geom.tuple)
285
286 def test_multilinestring_with_linearring(self):
287 geom = MultiLineString(

Callers

nothing calls this directly

Calls 4

MultiLineStringClass · 0.90
LineStringClass · 0.90
createMethod · 0.45
refresh_from_dbMethod · 0.45

Tested by

no test coverage detected