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

Method test_getfeature

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

Source from the content-addressed store, hash-verified

79 li = self.mo.insertLayer(lo)
80 self.lo = self.mo.getLayer(li)
81 def test_getfeature(self):
82 self.lo.open()
83 f = self.lo.getFeature(1, -1)
84 atts = [f.getValue(i) for i in range(self.lo.numitems)]
85 self.lo.close()
86 self.assertEqual(atts, ['1', '1', 'A Polygon'], atts)
87
88class SubSelectTest(unittest.TestCase):
89 def setUp(self):

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected