

def test_decl_list(self):
    resp = self.client.get('/api/declmodels/')
    self.assertEqual(resp.status_code, status.HTTP_200_OK)
    self.assertIsInstance(resp.data, dict)
    self.assertTrue((len(resp.data[RESULTS_KEY]) == 1))
    self.assertTrue((self.data[COUNT_KEY] == 1))
    self.assertTrue((resp.data[PAGE_KEY] == 25))

dataset/ETHPy150Open dealertrack/djangorest-alchemy/djangorest_alchemy/tests/test_viewsets.py TestAlchemyViewSetIntegration.test_decl_list/VarMisuse@69/88 `resp`->`self`