      @skipUnlessDBFeature("has_svg_method")
      def test_svg(self):
          "Testing SVG output using GeoQuerySet.svg()."
  
          self.assertRaises(TypeError, City.objects.svg, precision='foo')
          # SELECT AsSVG(geoapp_city.point, 0, 8) FROM geoapp_city WHERE name = 'Pueblo';
          svg1 = 'cx="-104.609252" cy="-38.255001"'
          # Even though relative, only one point so it's practically the same except for
          # the 'c' letter prefix on the x,y values.
          svg2 = svg1.replace('c', '')
 
</s> remove         self.assertRaises(TypeError, City.objects.geojson, precision='foo')
 </s> add         with self.assertRaises(TypeError):
            City.objects.geojson(precision='foo') </s> remove             self.assertRaises(TypeError, poly.__setitem__, 0, LineString((1, 1), (2, 2)))
 </s> add             with self.assertRaises(TypeError):
                poly.__setitem__(0, LineString((1, 1), (2, 2))) </s> remove         self.assertRaises(TypeError, qs.kml, 'name')
 </s> add         with self.assertRaises(TypeError):
            qs.kml('name') </s> remove         self.assertRaises(TypeError, qs.gml, field_name='name')
 </s> add         with self.assertRaises(TypeError):
            qs.gml(field_name='name') </s> remove         self.assertRaises(FieldError, Restaurant.objects.filter, supplier__name="foo")
 </s> add         with self.assertRaises(FieldError):
            Restaurant.objects.filter(supplier__name="foo")
        with self.assertRaises(TypeError):
            City.objects.svg(precision='foo')
      @skipUnlessDBFeature("has_svg_method")
      def test_svg(self):
          "Testing SVG output using GeoQuerySet.svg()."
  
        with self.assertRaises(TypeError):
            City.objects.svg(precision='foo')
          # SELECT AsSVG(geoapp_city.point, 0, 8) FROM geoapp_city WHERE name = 'Pueblo';
          svg1 = 'cx="-104.609252" cy="-38.255001"'
          # Even though relative, only one point so it's practically the same except for
          # the 'c' letter prefix on the x,y values.
          svg2 = svg1.replace('c', '')
keep keep keep keep replace keep keep keep keep keep
 Refs #26022 -- Used context manager version of assertRaises in tests. 
tests/gis_tests/geoapp/tests.py