Exemple #1
0
    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
Exemple #2
0
    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
Exemple #3
0
 def teardown(self):
     shutil.rmtree(self.lock_dir)
     Mocker.teardown(self)
Exemple #4
0
 def setup(self):
     Mocker.setup(self)
     self.lock_dir = tempfile.mkdtemp()
     self.lock_file = os.path.join(self.lock_dir, 'lock.lck')
Exemple #5
0
 def teardown(self):
     shutil.rmtree(self.lock_dir)
     Mocker.teardown(self)
Exemple #6
0
 def setup(self):
     Mocker.setup(self)
     self.lock_dir = tempfile.mkdtemp()
     self.lock_file = os.path.join(self.lock_dir, 'lock.lck')