

def test_action_method(self):
    resp = self.client.post('/api/declmodels/1/do_something/')
    self.assertEqual(resp.status_code, status.HTTP_200_OK)

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