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

Method test_getfeature

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

Source from the content-addressed store, hash-verified

97 li = self.mo.insertLayer(lo)
98 self.lo = self.mo.getLayer(li)
99 def test_getfeature(self):
100 self.lo.open()
101 f = self.lo.getFeature(1, -1)
102 atts = [f.getValue(i) for i in range(self.lo.numitems)]
103 self.lo.close()
104 self.assertEqual(atts, ['1', '1', 'A Polygon'], atts)
105
106class SubSelectNoSRIDTest(unittest.TestCase):
107 """SRID should be diagnosed from the selection"""

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected