Skip to content
Permalink
Browse files

Intendention

  • Loading branch information
mhugent committed Oct 27, 2017
1 parent 22a54fa commit 0eb7b4ebfc20bd31c93d276f2f2f331c900e7140
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/src/python/test_qgsserver_wms.py
@@ -1864,7 +1864,7 @@ def test_wms_GetLegendGraphic_BBox2(self):

r, h = self._result(self._execute_request(qs))
self._img_diff_error(r, h, "WMS_GetLegendGraphic_BBox2")

def test_wms_GetProjectSettings_wms_print_layers(self):
projectPath = self.testdata_path + "test_project_wms_printlayers.qgs"
qs = "?" + "&".join(["%s=%s" % i for i in list({
@@ -1875,9 +1875,9 @@ def test_wms_GetProjectSettings_wms_print_layers(self):
}.items())])
header, body = self._execute_request(qs)
xmlResult = body.decode('utf-8')
self.assertTrue( xmlResult.find( "<WMSBackgroundLayer>1</WMSBackgroundLayer>" ) != -1 )
self.assertTrue( xmlResult.find( "<WMSDataSource>contextualWMSLegend=0&amp;crs=EPSG:21781&amp;dpiMode=7&amp;featureCount=10&amp;format=image/png&amp;layers=public_geo_gemeinden&amp;styles=&amp;url=https://qgiscloud.com/mhugent/qgis_unittest_wms/wms?</WMSDataSource>" ) != -1 )
self.assertTrue( xmlResult.find( "<WMSPrintLayer>contextualWMSLegend=0&amp;amp;crs=EPSG:21781&amp;amp;dpiMode=7&amp;amp;featureCount=10&amp;amp;format=image/png&amp;amp;layers=public_geo_gemeinden&amp;amp;styles=&amp;amp;url=https://qgiscloud.com/mhugent/qgis_unittest_wms_print/wms?</WMSPrintLayer>" ) != -1 )
self.assertTrue(xmlResult.find("<WMSBackgroundLayer>1</WMSBackgroundLayer>") != -1)
self.assertTrue(xmlResult.find("<WMSDataSource>contextualWMSLegend=0&amp;crs=EPSG:21781&amp;dpiMode=7&amp;featureCount=10&amp;format=image/png&amp;layers=public_geo_gemeinden&amp;styles=&amp;url=https://qgiscloud.com/mhugent/qgis_unittest_wms/wms?</WMSDataSource>") != -1)
self.assertTrue(xmlResult.find("<WMSPrintLayer>contextualWMSLegend=0&amp;amp;crs=EPSG:21781&amp;amp;dpiMode=7&amp;amp;featureCount=10&amp;amp;format=image/png&amp;amp;layers=public_geo_gemeinden&amp;amp;styles=&amp;amp;url=https://qgiscloud.com/mhugent/qgis_unittest_wms_print/wms?</WMSPrintLayer>") != -1)

if __name__ == '__main__':
unittest.main()

0 comments on commit 0eb7b4e

Please sign in to comment.
You can’t perform that action at this time.