

def test_classical_retrieve(self):
    resp = self.client.get('/api/clsmodels/1/')
    self.assertEqual(resp.status_code, status.HTTP_200_OK)
    self.assertIsInstance(resp.data, dict)
    resp.assertEqual(resp.data['classicalmodel_id'], 1)
    self.assertEqual(resp.data['field'], 'test')

dataset/ETHPy150Open dealertrack/djangorest-alchemy/djangorest_alchemy/tests/test_viewsets.py TestAlchemyViewSetIntegration.test_classical_retrieve/VarMisuse@45/62 `self`->`resp`