MCPcopy Create free account
hub / github.com/MapServer/MapServer / test_getfeature

Method test_getfeature

mapscript/python/tests/cases/pgtest.py:63–68  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

61 li = self.mo.insertLayer(lo)
62 self.lo = self.mo.getLayer(li)
63 def test_getfeature(self):
64 self.lo.open()
65 f = self.lo.getFeature(1, -1)
66 atts = [f.getValue(i) for i in range(self.lo.numitems)]
67 self.lo.close()
68 self.assertEqual(atts, ['1', '1', 'A Polygon'], atts)
69
70class ViewTest(unittest.TestCase):
71 def setUp(self):

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected