          )
          inspector = AutoSchema()
          inspector.view = view
  
          serializer = inspector._get_serializer(path, method)
  
          with pytest.raises(Exception) as exc:
              inspector.get_component_name(serializer)
          assert "is an invalid class name for schema generation" in str(exc.value)
  
 
</s> remove         elif self._get_serializer(path, method) is not None:
            name = self._get_serializer(path, method).__class__.__name__
 </s> add         elif self.get_serializer(path, method) is not None:
            name = self.get_serializer(path, method).__class__.__name__ </s> remove         responses = inspector._get_responses(path, method)
 </s> add         responses = inspector.get_responses(path, method) </s> remove         request_body = inspector._get_request_body(path, method)
 </s> add         request_body = inspector.get_request_body(path, method) </s> remove         responses = inspector._get_responses(path, method)
 </s> add         responses = inspector.get_responses(path, method) </s> remove         request_body = inspector._get_request_body(path, method)
 </s> add         request_body = inspector.get_request_body(path, method)
        serializer = inspector.get_serializer(path, method)
          )
          inspector = AutoSchema()
          inspector.view = view
  
        serializer = inspector.get_serializer(path, method)
  
          with pytest.raises(Exception) as exc:
              inspector.get_component_name(serializer)
          assert "is an invalid class name for schema generation" in str(exc.value)
  
keep keep keep keep replace keep keep keep keep keep
 Convert openapi.AutoSchema methods to public API. 
tests/schemas/test_openapi.py