def test04_linestring(self):
        prev = OGRGeometry('POINT(0 0)')
        for ls in linestrings:
            linestr = OGRGeometry(ls.wkt)
            self.assertEqual(2, linestr.geom_type)
            self.assertEqual('LINESTRING', linestr.geom_name)
            self.assertEqual(ls.n_p, linestr.point_count)
            self.assertEqual(ls.tup, linestr.tuple)
            self.assertEqual(True, linestr == OGRGeometry(ls.wkt))
            self.assertEqual(True, linestr != prev)
            self.assertRaises(OGRIndexError, linestr.__getitem__, len(linestr))
            prev = linestr

            # Testing the x, y properties.
            x = [tmpx for tmpx, tmpy in ls.tup]
            y = [tmpy for tmpx, tmpy in ls.tup]
            self.assertEqual(x, linestr.x)
            self.assertEqual(y, linestr.y)
Task.get_list_info: returns valid tasks and info.
dataset/ETHPy150Open CollabQ/CollabQ/vendor/django/contrib/gis/tests/test_gdal_geom.py/OGRGeomTest.test04_linestring--crossover with--dataset/ETHPy150Open xtrementl/focus/tests/unit/test_task.py/TestTask.test__get_list_info