          self.assertRaises(ValidationError, site.full_clean)
          site.domain = "test\ttest"
          self.assertRaises(ValidationError, site.full_clean)
          site.domain = "test\ntest"
          self.assertRaises(ValidationError, site.full_clean)
  
      def test_clear_site_cache(self):
          request = HttpRequest()
          request.META = {
              "SERVER_NAME": "example.com",
 
</s> remove         self.assertRaises(ValidationError, site.full_clean)
 </s> add         with self.assertRaises(ValidationError):
            site.full_clean() </s> remove         self.assertRaises(ValidationError, site.full_clean)
 </s> add         with self.assertRaises(ValidationError):
            site.full_clean() </s> remove         self.assertRaises(ValidationError, f.clean, '0', None)
 </s> add         with self.assertRaises(ValidationError):
            f.clean('0', None) </s> remove         self.assertRaises(ValidationError, f.clean, None, None)
        self.assertRaises(ValidationError, f.clean, '', None)
 </s> add         with self.assertRaises(ValidationError):
            f.clean(None, None)
        with self.assertRaises(ValidationError):
            f.clean('', None) </s> remove         self.assertRaises(ValidationError, form_field.clean, '::1')
 </s> add         with self.assertRaises(ValidationError):
            form_field.clean('::1')
        with self.assertRaises(ValidationError):
            site.full_clean()
          self.assertRaises(ValidationError, site.full_clean)
          site.domain = "test\ttest"
          self.assertRaises(ValidationError, site.full_clean)
          site.domain = "test\ntest"
        with self.assertRaises(ValidationError):
            site.full_clean()
  
      def test_clear_site_cache(self):
          request = HttpRequest()
          request.META = {
              "SERVER_NAME": "example.com",
keep keep keep keep replace keep keep keep keep keep
 Refs #26022 -- Used context manager version of assertRaises in tests. 
tests/sites_tests/tests.py