'Testing LinearRing objects.'

def test_linearring(self):

    prev = OGRGeometry('POINT(0    0)')
    for rr in self.geometries.linearrings:
        lr = OGRGeometry(rr.wkt)
        self.assertEqual('LINEARRING', lr.geom_name)
        self.assertEqual(rr.n_p, len(lr))
        self.assertEqual(lr, OGRGeometry(rr.wkt))
        self.assertNotEqual(lr, prev)
        prev = lr
