def test_get_serializer_class_simple_serializer(self): viewset = FilledPDFFormViewSet(_paginator=True, kwargs={}) actual = viewset.get_serializer_class() assert actual is FilledPDFFormSerializer
def test_get_serializer_class_detail_not_paginated(self): viewset = FilledPDFFormViewSet(_paginator=None, kwargs={}) actual = viewset.get_serializer_class() assert actual is FilledPDFFormNestedSerializer
def test_get_serializer_class_detail(self): viewset = FilledPDFFormViewSet(kwargs={'pk': 123}) actual = viewset.get_serializer_class() assert actual is FilledPDFFormNestedSerializer
def test_get_serializer_class_detail(self): viewset = FilledPDFFormViewSet(kwargs={"pk": 123}) actual = viewset.get_serializer_class() assert actual is FilledPDFFormNestedSerializer