MCPcopy
hub / github.com/django/django / test_data_source_str

Method test_data_source_str

tests/gis_tests/layermap/tests.py:100–103  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

98 self.assertAlmostEqual(pnt1.y, pnt2.y, 5)
99
100 def test_data_source_str(self):
101 lm = LayerMapping(City, str(city_shp), city_mapping)
102 lm.save()
103 self.assertEqual(City.objects.count(), 3)
104
105 def test_layermap_strict(self):
106 "Testing the `strict` keyword, and import of a LineString shapefile."

Callers

nothing calls this directly

Calls 3

saveMethod · 0.95
LayerMappingClass · 0.90
countMethod · 0.45

Tested by

no test coverage detected