def test_new_labels(self):

        view = LabelTestView.as_view()

        request = factory.get('/')
        with self.assertNumQueries(2):
            response = view(request).render()

        self.assertEqual(response.status_code, status.HTTP_200_OK)

        self.assertEqual(len(response.data),2)
        self.assertIn('The Plays',response.data[0].keys())
        self.assertIn('The Sonnets',response.data[1].keys())
Run the report
dataset/ETHPy150Open Axiologue/DjangoRestMultipleModels/drf_multiple_model/tests.py/TestMMViews.test_new_labels--crossover with--dataset/ETHPy150Open openstack/rack/rack/openstack/common/report/report.py/BasicReport.run