'Fetch custom binary result using URL Template(result should not be modified)'

def test_url_template_custom_binary(self):

    config_file_content = '\n                                {\n                                            "layers":{\n                                                        "local_layer":{\n                                                                    "projection":"WGS84",\n                                                                    "provider":{\n                                                                                "name":"url    template",\n                                                                                "template":"http://localhost:<<port>>/&BBOX=$xmin,$ymin,$xmax,$ymax"\n                                                                    }\n                                                        }\n                                                },\n                                                "cache":    {\n                                                                "name":    "Test"\n                                                }\n                                }\n                                '.replace('<<port>>', str(self.server_port))
    (tile_mimetype, tile_content) = utils.request(config_file_content, 'local_layer', 'png', 0, 0, 0)
    self.assertEquals(tile_mimetype, self.response_mimetype)
    self.assertEquals(tile_content, self.response_content)
