          "Testing GML output from the database using GeoQuerySet.gml()."
          # Should throw a TypeError when trying to obtain GML from a
          # non-geometry field.
          qs = City.objects.all()
          self.assertRaises(TypeError, qs.gml, field_name='name')
          ptown1 = City.objects.gml(field_name='point', precision=9).get(name='Pueblo')
          ptown2 = City.objects.gml(precision=9).get(name='Pueblo')
  
          if oracle:
              # No precision parameter for Oracle :-/
 
</s> remove         self.assertRaises(TypeError, qs.kml, 'name')
 </s> add         with self.assertRaises(TypeError):
            qs.kml('name') </s> remove             self.assertRaises(NotImplementedError, Country.objects.all().geojson, field_name='mpoly')
 </s> add             with self.assertRaises(NotImplementedError):
                Country.objects.all().geojson(field_name='mpoly') </s> remove             self.assertRaises(e, GeoIP, bad, 0)
 </s> add             with self.assertRaises(e):
                GeoIP(bad, 0) </s> remove         self.assertRaises(exception, force_text, MyString())
 </s> add         with self.assertRaises(exception):
            force_text(MyString()) </s> remove         self.assertRaises(GeoIPException, cntry_g.city, 'google.com')
        self.assertRaises(GeoIPException, cntry_g.coords, 'yahoo.com')
 </s> add         with self.assertRaises(GeoIPException):
            cntry_g.city('google.com')
        with self.assertRaises(GeoIPException):
            cntry_g.coords('yahoo.com')
        with self.assertRaises(TypeError):
            qs.gml(field_name='name')
          "Testing GML output from the database using GeoQuerySet.gml()."
          # Should throw a TypeError when trying to obtain GML from a
          # non-geometry field.
          qs = City.objects.all()
        with self.assertRaises(TypeError):
            qs.gml(field_name='name')
          ptown1 = City.objects.gml(field_name='point', precision=9).get(name='Pueblo')
          ptown2 = City.objects.gml(precision=9).get(name='Pueblo')
  
          if oracle:
              # No precision parameter for Oracle :-/
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