def METHOD_NAME(self):
    super().METHOD_NAME()
    patch = mock.patch("warnings.warn")
    self.mocked_warnings = patch.start()
    self.addCleanup(patch.stop)
    req = DummyRequest()
    req.validated = {"body": {}, "header": {}, "querystring": {}}
    req.registry.storage.list_all.return_value = []
    req.registry.storage.delete_all.return_value = []
    req.registry.storage.create.return_value = {"id": "abc", "last_modified": 123}
    self.resource = Resource(context=mock.MagicMock(), request=req)