复制代码def test_view_inheritance(self, instance): """Test view inheritance name""" assert isinstance(instance, viewsets.ReadOnlyModelViewSet)