'Testing MultiLineString objects.'

def test05_multilinestring(self):

    prev = OGRGeometry('POINT(0    0)')
    for mls in self.geometries.multilinestrings:
        mlinestr = OGRGeometry(mls.wkt)
        self.assertEqual(5, mlinestr.geom_type)
        self.assertEqual('MULTILINESTRING', mlinestr.geom_name)
        self.assertEqual(mls.n_p, mlinestr.point_count)
        self.assertEqual(mls.coords, mlinestr.tuple)
        self.assertEqual(True, (mlinestr == OGRGeometry(mls.wkt)))
        self.assertEqual(True, (mlinestr != prev))
        prev = mlinestr
        for ls in mlinestr:
            self.assertEqual(2, ls.geom_type)
            self.assertEqual('LINESTRING', ls.geom_name)
        self.assertRaises(OGRIndexError, mlinestr.__getitem__, len(mlinestr))
