'Create a polygon to cover the world and make sure it is "similar" (clip on) (pbf)'

def test_polygon_pbf(self):

    self.defineGeometry('POLYGON')
    geom = Polygon([((-180), (-85.05)), (180, (-85.05)), (180, 85.05), ((-180), 85.05), ((-180), (-85.05))])
    self.insertTestRow(geom.wkt)
    (tile_mimetype, tile_content) = utils.request(self.config_file_content, 'vectile_test', 'pbf', 0, 0, 0)
    self.assertTrue(tile_mimetype.endswith('/x-protobuf'))
    pbf_result = mapbox_vector_tile.decode(tile_content)
    layer_result = pbf_result['vectile_test']
    extent = tile_bounds_mercator(0, 0, 0)
    result_geom = decoded_pbf_asshape(layer_result['features'][0], extent)
    expected_geom = Polygon([((-180), (-85.05)), (180, (-85.05)), (180, 85.05), ((-180), 85.05), ((-180), (-85.05))])
    self.assertTrue(result_geom.difference(expected_geom.buffer(0.01)).is_empty)
    self.assertTrue(expected_geom.difference(result_geom.buffer(0.01)).is_empty)
