def view(self, request, decorator=None):
        if decorator is None:
            decorator = self.actions(self.mock_model, ["doit"])

        @decorator
        def view(req):
            response = HttpResponse()
            response.request = req
            return response

        return view(request)
Creates or replaces a storage object in this container.
dataset/ETHPy150Open mozilla/moztrap/tests/view/lists/test_actions.py/ActionsTest.view--crossover with--dataset/ETHPy150Open rackspace/pyrax/pyrax/object_storage.py/StorageObjectManager.create