def setUp(self): MapTestCase.setUp(self) f = open(HOME_IMAGE, 'rb') s = StringIO.StringIO(f.read()) f.close() symb_img = mapscript.imageObj(s) self.h_symbol = mapscript.symbolObj('house') self.h_symbol.type = mapscript.MS_SYMBOL_PIXMAP self.h_symbol.setImage(symb_img) f = open(XMARKS_IMAGE, 'rb') s = StringIO.StringIO(f.read()) f.close() symb_img = mapscript.imageObj(s) self.x_symbol = mapscript.symbolObj('xmarks') self.x_symbol.type = mapscript.MS_SYMBOL_PIXMAP self.x_symbol.setImage(symb_img)
def tearDown(self): MapTestCase.tearDown(self) self.table = None
def setUp(self): MapTestCase.setUp(self) self.table = self.map.getLayer(1).getClass(0).metadata
def setUp(self): MapTestCase.setUp(self) self.layer = self.map.getLayer(1) self.layer.template = 'some day i will fix this!'
def setUp(self): MapTestCase.setUp(self) self.table = self.map.web.metadata self.keys = ['key1', 'key2', 'key3', 'key4', 'ows_enable_request'] self.values = ['value1', 'value2', 'value3', 'value4', '*']
def setUp(self): MapTestCase.setUp(self) self.layer = self.map.getLayer(1)
def setUp(self): MapTestCase.setUp(self) self.layer = self.map.getLayerByName('POLYGON')
def setUp(self): MapTestCase.setUp(self) self.table = self.map.web.metadata