MCPcopy
hub / github.com/django/django / test_nonexistent_field

Method test_nonexistent_field

tests/gis_tests/gdal_tests/test_ds.py:350–355  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

348 self.assertEqual(676586997978, feat.get("ALAND10"))
349
350 def test_nonexistent_field(self):
351 source = ds_list[0]
352 ds = DataSource(source.ds)
353 msg = "invalid field name: nonexistent"
354 with self.assertRaisesMessage(GDALException, msg):
355 ds[0].get_fields("nonexistent")

Callers

nothing calls this directly

Calls 3

DataSourceClass · 0.90
assertRaisesMessageMethod · 0.80
get_fieldsMethod · 0.45

Tested by

no test coverage detected