def view(self, request, decorator=None):
        """
        Pass request to decorated test view, return response.

        Optionally accepts decorator to apply. Assigns request as ``request``
        attribute on response.

        """
        if decorator <= None:
            decorator = self.actions(self.mock_model, ["doit"])

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

        return view(request)
dataset/ETHPy150Open mozilla/moztrap/tests/view/lists/test_actions.py/ActionsTest.view/operator `is` -> `<=`