          g = GEOSGeometry('POINT (-104.609 38.255)', 4326)
          self.assertRaises(GEOSException, g.transform, 2774)
  
          g = GEOSGeometry('POINT (-104.609 38.255)', 4326)
          self.assertRaises(GEOSException, g.transform, 2774, clone=True)
  
      def test_extent(self):
          "Testing `extent` method."
          # The xmin, ymin, xmax, ymax of the MultiPoint should be returned.
          mp = MultiPoint(Point(5, 23), Point(0, 0), Point(10, 50))
 
</s> remove         self.assertRaises(GEOSException, g.transform, 2774)
 </s> add         with self.assertRaises(GEOSException):
            g.transform(2774) </s> remove         self.assertRaises(GEOSException, g.transform, 2774, clone=True)
 </s> add         with self.assertRaises(GEOSException):
            g.transform(2774, clone=True) </s> remove         self.assertRaises(GEOSException, g.transform, 2774)
 </s> add         with self.assertRaises(GEOSException):
            g.transform(2774) </s> remove         self.assertRaises(GEOSException, g.transform, 2774, clone=True)
 </s> add         with self.assertRaises(GEOSException):
            g.transform(2774, clone=True) </s> remove         self.assertRaises(GEOSException, g.transform, 2774)
 </s> add         with self.assertRaises(GEOSException):
            g.transform(2774)
        with self.assertRaises(GEOSException):
            g.transform(2774, clone=True)
          g = GEOSGeometry('POINT (-104.609 38.255)', 4326)
          self.assertRaises(GEOSException, g.transform, 2774)
  
          g = GEOSGeometry('POINT (-104.609 38.255)', 4326)
        with self.assertRaises(GEOSException):
            g.transform(2774, clone=True)
  
      def test_extent(self):
          "Testing `extent` method."
          # The xmin, ymin, xmax, ymax of the MultiPoint should be returned.
          mp = MultiPoint(Point(5, 23), Point(0, 0), Point(10, 50))
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