MCPcopy
hub / github.com/django/django / test_charfield_too_short

Method test_charfield_too_short

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

Source from the content-addressed store, hash-verified

323 lm.save(silent=True)
324
325 def test_charfield_too_short(self):
326 mapping = copy(city_mapping)
327 mapping["name_short"] = "Name"
328 lm = LayerMapping(City, city_shp, mapping)
329 with self.assertRaises(InvalidString):
330 lm.save(silent=True, strict=True)
331
332 def test_textfield(self):
333 "String content fits also in a TextField"

Callers

nothing calls this directly

Calls 2

saveMethod · 0.95
LayerMappingClass · 0.90

Tested by

no test coverage detected