'Fetch two WGS84 tiles from WMS using bbox'

def test_url_template_wgs84(self):

    config_file_content = '\n                                {\n                                            "layers":{\n                                                        "osgeo_wms":{\n                                                                    "projection":"WGS84",\n                                                                    "provider":{\n                                                                                "name":"url    template",\n                                                                                "template":"http://vmap0.tiles.osgeo.org/wms/vmap0?LAYERS=basic&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fpng&SRS=EPSG%3A4326&BBOX=$xmin,$ymin,$xmax,$ymax&WIDTH=256&HEIGHT=256"\n                                                                    }\n                                                        }\n                                                },\n                                                "cache":    {\n                                                                "name":    "Test"\n                                                }\n                                }\n                                '
    (tile_mimetype, tile_content) = utils.request(config_file_content, 'osgeo_wms', 'png', 0, 0, 0)
    self.assertEqual(tile_mimetype, 'image/png')
    self.assertTrue((tile_content[:4] in '\x89PNG'))
    (tile_mimetype, tile_content) = utils.request(config_file_content, 'osgeo_wms', 'png', 0, 1, 0)
    self.assertEqual(tile_mimetype, 'image/png')
    self.assertTrue((tile_content[:4] in '\x89PNG'))
