                  self.assertEqual(ls.geom_type, 'LineString')
                  self.assertEqual(ls.geom_typeid, 1)
                  self.assertEqual(ls.empty, False)
  
              self.assertRaises(IndexError, ml.__getitem__, len(ml))
              self.assertEqual(ml.wkt, MultiLineString(*tuple(s.clone() for s in ml)).wkt)
              self.assertEqual(ml, MultiLineString(*tuple(LineString(s.tuple) for s in ml)))
  
      def test_linearring(self):
          "Testing LinearRing objects."
 
</s> remove             self.assertRaises(IndexError, poly.__getitem__, len(poly))
            self.assertRaises(IndexError, poly.__setitem__, len(poly), False)
            self.assertRaises(IndexError, poly.__getitem__, -1 * len(poly) - 1)
 </s> add             with self.assertRaises(IndexError):
                poly.__getitem__(len(poly))
            with self.assertRaises(IndexError):
                poly.__setitem__(len(poly), False)
            with self.assertRaises(IndexError):
                poly.__getitem__(-1 * len(poly) - 1) </s> remove             self.assertRaises(
                signing.BadSignature, signing.loads, transform(encoded))
 </s> add             with self.assertRaises(signing.BadSignature):
                signing.loads(transform(encoded)) </s> remove         self.assertRaises(IndexError, p._checkindex, 2)
        self.assertRaises(IndexError, p._checkindex, -3)
 </s> add         with self.assertRaises(IndexError):
            p._checkindex(2)
        with self.assertRaises(IndexError):
            p._checkindex(-3) </s> remove             self.assertRaises(TypeError, wkb_r.read, bad_wkb)
 </s> add             with self.assertRaises(TypeError):
                wkb_r.read(bad_wkb) </s> remove             self.assertRaises(IndexError, mpnt.__getitem__, len(mpnt))
 </s> add             with self.assertRaises(IndexError):
                mpnt.__getitem__(len(mpnt))
            with self.assertRaises(IndexError):
                ml.__getitem__(len(ml))
                  self.assertEqual(ls.geom_type, 'LineString')
                  self.assertEqual(ls.geom_typeid, 1)
                  self.assertEqual(ls.empty, False)
  
            with self.assertRaises(IndexError):
                ml.__getitem__(len(ml))
              self.assertEqual(ml.wkt, MultiLineString(*tuple(s.clone() for s in ml)).wkt)
              self.assertEqual(ml, MultiLineString(*tuple(LineString(s.tuple) for s in ml)))
  
      def test_linearring(self):
          "Testing LinearRing objects."
keep keep keep keep replace keep keep keep keep keep
 Refs #26022 -- Used context manager version of assertRaises in tests. 
tests/gis_tests/geos_tests/test_geos.py