          for item in items:
              self.assertChildNodes(item, ['title', 'link', 'description', 'guid', 'geo:lat', 'geo:lon'])
  
          # Boxes and Polygons aren't allowed in W3C Geo feeds.
          self.assertRaises(ValueError, self.client.get, '/feeds/w3cgeo2/')  # Box in <channel>
          self.assertRaises(ValueError, self.client.get, '/feeds/w3cgeo3/')  # Polygons in <entry>
 
</s> remove             self.assertRaises(ValueError, Country.objects.snap_to_grid, *bad_args)
 </s> add             with self.assertRaises(ValueError):
                Country.objects.snap_to_grid(*bad_args) </s> remove             self.assertRaises(ValueError, http.int_to_base36, sys.maxint + 1)
 </s> add             with self.assertRaises(ValueError):
                http.int_to_base36(sys.maxint + 1) </s> remove             self.assertRaises(TypeError, Country.objects.snap_to_grid, *bad_args)
 </s> add             with self.assertRaises(TypeError):
                Country.objects.snap_to_grid(*bad_args) </s> remove         self.assertRaises(ValueError, Country.objects.filter, mpoly__relate=(23, 'foo'))
 </s> add         with self.assertRaises(ValueError):
            Country.objects.filter(mpoly__relate=(23, 'foo')) </s> remove             self.assertRaises(TypeError, http.base36_to_int, n)
 </s> add             with self.assertRaises(TypeError):
                http.base36_to_int(n)
        with self.assertRaises(ValueError):  # Box in <channel>
            self.client.get('/feeds/w3cgeo2/')
        with self.assertRaises(ValueError):  # Polygons in <entry>
            self.client.get('/feeds/w3cgeo3/')
          for item in items:
              self.assertChildNodes(item, ['title', 'link', 'description', 'guid', 'geo:lat', 'geo:lon'])
  
          # Boxes and Polygons aren't allowed in W3C Geo feeds.
        with self.assertRaises(ValueError):  # Box in <channel>
            self.client.get('/feeds/w3cgeo2/')
        with self.assertRaises(ValueError):  # Polygons in <entry>
            self.client.get('/feeds/w3cgeo3/')
        with self.assertRaises(ValueError):  # Box in <channel>
            self.client.get('/feeds/w3cgeo2/')
        with self.assertRaises(ValueError):  # Polygons in <entry>
            self.client.get('/feeds/w3cgeo3/')
keep keep keep keep replace replace
 Refs #26022 -- Used context manager version of assertRaises in tests. 
tests/gis_tests/geoapp/test_feeds.py