def _validate_action(self, result):
        """
        Validate action result
        """
        # Action can be empty
        if result == None:
            return True

        if not isinstance(result, dict):
            raise ValidationError("Action result must be dictionary")

        try:
            self._validate_msg(result['messages'])
        except __HOLE__:
            raise ValidationError("Action doesn't have message")

        try:
            self._validate_status(result['status'])
        except KeyError:
            raise ValidationError("Action doesn't have status")
dataset/ETHPy150Open gooddata/smoker/smoker/server/plugins/__init__.py/Result._validate_action