'Fetch tile from OSM using Proxy provider (web mercator)'

def test_proxy_mercator(self):

    config_file_content = '\n                                {\n                                            "layers":{\n                                                        "osm":{\n                                                                    "provider":{\n                                                                                "name":"proxy",\n                                                                                "url":    "http://tile.openstreetmap.org/{Z}/{X}/{Y}.png"\n                                                                    }\n                                                        }\n                                                },\n                                                "cache":    {\n                                                                "name":    "Test"\n                                                }\n                                }\n                                '
    (tile_mimetype, tile_content) = utils.request(config_file_content, 'osm', 'png', 0, 0, 0)
    self.assertEqual(tile_mimetype, 'image/png')
    self.assertTrue((tile_content[:4] in '\x89PNG'))
