              self.assertEqual(p.coords, (50.0, 3141.0), 'Point _set_list')
  
      def test02_PointExceptions(self):
          'Testing Point exceptions'
          self.assertRaises(TypeError, Point, range(1))
          self.assertRaises(TypeError, Point, range(4))
  
      def test03_PointApi(self):
          'Testing Point API'
          q = Point(4, 5, 3)
          for p in (Point(1, 2, 3), fromstr('POINT (1 2 3)')):
 
</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, http.int_to_base36, n)
 </s> add             with self.assertRaises(TypeError):
                http.int_to_base36(n) </s> remove             self.assertRaises(ValueError, http.base36_to_int, n)
 </s> add             with self.assertRaises(ValueError):
                http.base36_to_int(n) </s> remove         self.assertRaises(TypeError, setfcn, ul, 2, 'hello')
        self.assertRaises(TypeError, setfcn, ul, slice(0, 3, 2), ('hello', 'goodbye'))
 </s> add         with self.assertRaises(TypeError):
            setfcn(ul, 2, 'hello')
        with self.assertRaises(TypeError):
            setfcn(ul, slice(0, 3, 2), ('hello', 'goodbye')) </s> remove         self.assertRaises(ValueError, http.int_to_base36, -1)
 </s> add         with self.assertRaises(ValueError):
            http.int_to_base36(-1)
        with self.assertRaises(TypeError):
            Point(range(1))
        with self.assertRaises(TypeError):
            Point(range(4))
              self.assertEqual(p.coords, (50.0, 3141.0), 'Point _set_list')
  
      def test02_PointExceptions(self):
          'Testing Point exceptions'
        with self.assertRaises(TypeError):
            Point(range(1))
        with self.assertRaises(TypeError):
            Point(range(4))
        with self.assertRaises(TypeError):
            Point(range(1))
        with self.assertRaises(TypeError):
            Point(range(4))
  
      def test03_PointApi(self):
          'Testing Point API'
          q = Point(4, 5, 3)
          for p in (Point(1, 2, 3), fromstr('POINT (1 2 3)')):
keep keep keep keep replace replace keep keep keep keep keep
 Refs #26022 -- Used context manager version of assertRaises in tests. 
tests/gis_tests/geos_tests/test_geos_mutation.py