def setup(self): Mocker.setup(self) req = url_decode( """LAYERS=foo&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1& REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&SRS=EPSG%3A900913& BBOX=8,4,9,5&WIDTH=150&HEIGHT=100""".replace('\n', '')) self.req = req
def setup(self): Mocker.setup(self) req = url_decode( """LAYERS=foo&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1& REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&SRS=EPSG%3A900913& BBOX=8,4,9,5&WIDTH=150&HEIGHT=100""".replace( "\n", "" ) ) self.req = req
def teardown(self): shutil.rmtree(self.lock_dir) Mocker.teardown(self)
def setup(self): Mocker.setup(self) self.lock_dir = tempfile.mkdtemp() self.lock_file = os.path.join(self.lock_dir, 'lock.lck')