'Testing LineString mutations'

def test04_LineStringMutations(self):

    for ls in (LineString((1, 0), (4, 1), (6, (-1))), fromstr('LINESTRING    (1    0,4    1,6    -1)')):
        self.assertEqual(ls._get_single_external(1), (4.0, 1.0), 'LineString    _get_single_external')
        ls._set_single(0, ((-50), 25))
        self.assertEqual(ls.coords, (((-50.0), 25.0), (4.0, 1.0), (6.0, (-1.0))), 'LineString    _set_single')
        ls._set_list(2, (((-50.0), 25.0), (6.0, (-1.0))))
        self.assertEqual(ls.coords, (((-50.0), 25.0), (6.0, (-1.0))), 'LineString    _set_list')
        lsa = LineString(ls.coords)
        for f in geos_function_tests:
            self.assertEqual(f(lsa), f(ls), ('LineString    ' + f.__name__))
