Permalink
Browse files

TOREVIEW - getLabel functionality appears to no longer be available

  • Loading branch information...
geographika committed Mar 11, 2018
1 parent 1b2093b commit 028c87c7b8e03afc1fd5e0a11137796c75a43b2f
Showing with 5 additions and 3 deletions.
  1. +5 −3 mapscript/python/tests/cases/labeltest.py
@@ -54,10 +54,12 @@ class LabelCacheMemberTestCase(MapTestCase):
def testCacheMemberText(self):
"""string attribute has been renamed to 'text' (bug 852)"""
lo = self.map.getLayerByName('POINT')
lo.status = mapscript.MS_ON
img = self.map.draw()
assert self.map.labelcache.numlabels == 2, self.map.labelcache.numlabels
label = self.map.nextLabel()
assert label.text == 'A Point', label.text
assert self.map.labelcache.num_rendered_members == 1, self.map.labelcache.num_rendered_members
# label = self.map.nextLabel()
# assert label.text == 'A Point', label.text
# ===========================================================================

0 comments on commit 028c87c

Please sign in to comment.