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

def test_linestring_topojson(self):

    self.defineGeometry('LINESTRING')
    geom = LineString([((-180), 32), (180, 32)])
    self.insertTestRow(geom.wkt)
    (tile_mimetype, tile_content) = utils.request(self.config_file_content, 'vectile_test', 'topojson', 0, 0, 0)
    self.assertTrue(tile_mimetype.endswith('/json'))
    topojson_result = json.loads(tile_content.decode('utf8'))
    topojson_xform = get_topo_transform(topojson_result)
    parts = [topojson_result['arcs'][arc] for arc in topojson_result['objects']['vectile']['geometries'][0]['arcs']]
    parts = [map(topojson_xform, topojson_dediff(part)) for part in parts]
    west_hemisphere_geometry = LineString(*parts)
    self.assertTrue((abs((west_hemisphere_geometry.coords[0][0] + 180)) < 2))
    self.assertTrue((abs((west_hemisphere_geometry.coords[1][0] - 180)) < 2))
    self.assertTrue((abs((west_hemisphere_geometry.coords[0][1] - 32)) < 2))
    self.assertTrue((abs((west_hemisphere_geometry.coords[1][1] - 32)) < 2))
