'Create a line that goes from west to east (clip on) (pbf)'

def test_linestring_pbf(self):

    self.defineGeometry('LINESTRING')
    geom = LineString([((-179), 32), (179, 32)])
    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)
    west_hemisphere_geometry = decoded_pbf_asshape(layer_result['features'][0], extent)
    expected_geometry = LineString([((-179), 32), (179, 32)])
    for (returned, expected) in zip(west_hemisphere_geometry.coords, expected_geometry.coords):
        self.assertEqual(round(returned[0]), expected[0])
        self.assertEqual(round(returned[1]), expected[1])
