

def test_classical_list(self):
    resp = self.client.get('/api/clsmodels/?field=test')
    self.assertEqual(resp.status_code, status.HTTP_200_OK)
    self.assertIsInstance(resp.data, dict)
    self.assertTrue((len(resp.data[RESULTS_KEY]) == 1))

dataset/ETHPy150Open dealertrack/djangorest-alchemy/djangorest_alchemy/tests/test_viewsets.py TestAlchemyViewSetIntegration.test_classical_list/original