def test_ordered_wrong_sorting(self):

        view = OrderedWrongView.as_view()

        request = factory.get('/')
        self.assertRaises(KeyError,view,request)
Sorting by a non-shared field should throw a KeyError
dataset/ETHPy150Open Axiologue/DjangoRestMultipleModels/drf_multiple_model/tests.py/TestMMViews.test_ordered_wrong_sorting