MCPcopy Index your code
hub / github.com/encode/django-rest-framework / test_delete

Method test_delete

tests/test_routers.py:553–556  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

551 assert response.data == {"url": "http://testserver/example/notes/123/", "uuid": "123", "text": "foo bar example"}
552
553 def test_delete(self):
554 response = self.client.delete('/example/notes/123/')
555 assert response.status_code == 204
556 assert not RouterTestModel.objects.filter(uuid='123').exists()
557
558 def test_list_extra_action(self):
559 kwarg = 1234

Callers

nothing calls this directly

Calls 3

deleteMethod · 0.45
existsMethod · 0.45
filterMethod · 0.45

Tested by

no test coverage detected