          def build_abc():
              class NoAbstract(Abstract):
                  class Meta:
                      proxy = True
          self.assertRaises(TypeError, build_abc)
  
      @isolate_apps('proxy_models')
      def test_no_cbc(self):
          """
          The proxy must actually have one concrete base class
 
</s> remove         self.assertRaises(TypeError, build_no_cbc)
 </s> add         with self.assertRaises(TypeError):
            build_no_cbc() </s> remove         self.assertRaises(TypeError, build_no_base_classes)
 </s> add         with self.assertRaises(TypeError):
            build_no_base_classes() </s> remove         self.assertRaises(PermissionDenied, AView.as_view(), request)
 </s> add         with self.assertRaises(PermissionDenied):
            AView.as_view()(request) </s> remove         self.assertRaises(ValueError, ModelFormMetaclass, str('Form'), (ModelForm,), {'Meta': Meta})
 </s> add         with self.assertRaises(ValueError):
            ModelFormMetaclass(str('Form'), (ModelForm,), {'Meta': Meta}) </s> remove         self.assertRaises(
            Person.MultipleObjectsReturned,
            StatusPerson.objects.get,
            id__lt=max_id + 1
        )
 </s> add         with self.assertRaises(Person.MultipleObjectsReturned):
            StatusPerson.objects.get(id__lt=max_id + 1)
        with self.assertRaises(TypeError):
            build_abc()
          def build_abc():
              class NoAbstract(Abstract):
                  class Meta:
                      proxy = True
        with self.assertRaises(TypeError):
            build_abc()
  
      @isolate_apps('proxy_models')
      def test_no_cbc(self):
          """
          The proxy must actually have one concrete base class
keep keep keep keep replace keep keep keep keep keep
 Refs #26022 -- Used context manager version of assertRaises in tests. 
tests/proxy_models/tests.py