def test_view_inheritance(self, instance):
"""Test view inheritance name"""
assert isinstance(instance, viewsets.ReadOnlyModelViewSet)
python类ReadOnlyModelViewSet()的实例源码
def test_view_inheritance(self, instance):
"""Test view inheritance name"""
assert isinstance(instance, viewsets.ReadOnlyModelViewSet)