          Check we get ImproperlyConfigured when we don't pass a site object to
          Sitemap.get_urls if Site objects exists, but the sites framework is not
          actually installed.
          """
          self.assertRaises(ImproperlyConfigured, Sitemap().get_urls)
  
      def test_sitemap_item(self):
          """
          Check to make sure that the raw item is included with each
          Sitemap.get_url() url result.
 
</s> remove         self.assertRaises(ImproperlyConfigured, Sitemap().get_urls)
 </s> add         with self.assertRaises(ImproperlyConfigured):
            Sitemap().get_urls() </s> remove         self.assertRaises(ObjectDoesNotExist, get_current_site, request)
 </s> add         with self.assertRaises(ObjectDoesNotExist):
            get_current_site(request) </s> remove         self.assertRaises(ImproperlyConfigured,
                          self.client.get,
                          '/syndication/articles/')
 </s> add         with self.assertRaises(ImproperlyConfigured):
            self.client.get('/syndication/articles/') </s> remove         self.assertRaises(ObjectDoesNotExist, Site.objects.get_current)
 </s> add         with self.assertRaises(ObjectDoesNotExist):
            Site.objects.get_current() </s> remove         self.assertRaises(ImproperlyConfigured, finders.FileSystemFinder)
 </s> add         with self.assertRaises(ImproperlyConfigured):
            finders.FileSystemFinder()
        with self.assertRaises(ImproperlyConfigured):
            Sitemap().get_urls()
          Check we get ImproperlyConfigured when we don't pass a site object to
          Sitemap.get_urls if Site objects exists, but the sites framework is not
          actually installed.
          """
        with self.assertRaises(ImproperlyConfigured):
            Sitemap().get_urls()
  
      def test_sitemap_item(self):
          """
          Check to make sure that the raw item is included with each
          Sitemap.get_url() url result.
keep keep keep keep replace keep keep keep keep keep
 Refs #26022 -- Used context manager version of assertRaises in tests. 
tests/sitemaps_tests/test_http.py