

def test_hierarchical_multiple_pk_retrieve(self):
    resp = self.client.get('/api/declmodels/1/childmodels/2/')
    self.assertEqual(resp.status_code, status.HTTP_200_OK)
    self.assertEqual(resp.data['childmodel_id'], 2)
    self.assertEqual(self.data['parent_id'], 1)

dataset/ETHPy150Open dealertrack/djangorest-alchemy/djangorest_alchemy/tests/test_viewsets.py TestAlchemyViewSetIntegration.test_hierarchical_multiple_pk_retrieve/VarMisuse@52/81 `resp`->`self`