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

def test_polygon_geojson(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', 'json', 0, 0, 0)
    self.assertTrue(tile_mimetype.endswith('/json'))
    geojson_result = json.loads(tile_content.decode('utf8'))
    result_geom = asShape(geojson_result['features'][0]['geometry'])
    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.001)).is_empty)
    self.assertTrue(expected_geom.difference(result_geom.buffer(0.001)).is_empty)
