          t = Track.objects.reverse_geom().get(name='Foo')
          coords.reverse()
          self.assertEqual(tuple(coords), t.reverse_geom.coords)
          if oracle:
              self.assertRaises(TypeError, State.objects.reverse_geom)
  
      @skipUnlessDBFeature("has_scale_method")
      def test_scale(self):
          "Testing the `scale` GeoQuerySet method."
          xfac, yfac = 2, 3
 
</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(TypeError, s1.__getitem__, 0)
        self.assertRaises(TypeError, s1.__getitem__, ('GEOGCS', 'foo'))
 </s> add         with self.assertRaises(TypeError):
            s1.__getitem__(0)
        with self.assertRaises(TypeError):
            s1.__getitem__(('GEOGCS', 'foo')) </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(GEOSException, g.transform, 2774, clone=True)
 </s> add         with self.assertRaises(GEOSException):
            g.transform(2774, clone=True) </s> remove         self.assertRaises(exception, force_text, MyString())
 </s> add         with self.assertRaises(exception):
            force_text(MyString())
            with self.assertRaises(TypeError):
                State.objects.reverse_geom()
          t = Track.objects.reverse_geom().get(name='Foo')
          coords.reverse()
          self.assertEqual(tuple(coords), t.reverse_geom.coords)
          if oracle:
            with self.assertRaises(TypeError):
                State.objects.reverse_geom()
  
      @skipUnlessDBFeature("has_scale_method")
      def test_scale(self):
          "Testing the `scale` GeoQuerySet method."
          xfac, yfac = 2, 3
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