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

def test_linestring_geojson(self):

    self.defineGeometry('LINESTRING')
    geom = LineString([((-180), 32), (180, 32)])
    self.insertTestRow(geom.wkt)
    (tile_mimetype, tile_content) = utils.request(self.config_file_content, 'vector_test', 'geojson', 0, 0, 0)
    self.assertTrue(tile_mimetype.endswith('/json'))
    geojson_result = json.loads(tile_content.decode('utf8'))
    west_hemisphere_geometry = asShape(geojson_result['features'][0]['geometry'])
    expected_geometry = LineString([((-180), 32), (0, 32)])
    self.assertTrue(expected_geometry.almost_equals(west_hemisphere_geometry))
    (tile_mimetype, tile_content) = utils.request(self.config_file_content, 'vector_test', 'geojson', 0, 1, 0)
    self.assertTrue(tile_mimetype.endswith('/json'))
    geojson_result = json.loads(tile_content.decode('utf8'))
    east_hemisphere_geometry = asShape(geojson_result['features'][0]['geometry'])
    expected_geometry = LineString([(0, 32), (180, 32)])
    self.assertTrue(expected_geometry.almost_equals(east_hemisphere_geometry))
