def test_commentnode_from_metadata(self):
        params = self._setup_commentnode()
        params.pop("comment")
        params["metadata"] = {}

        # Just testing that error from missing required parameters is not raised
        util.commentnode_kwargs(params)
Example #2
0
 def __init__(self, **kwargs):
     """
     Initializes the CommentNode instance and sets its instance variables.
     """
     comment, kwargs = util.commentnode_kwargs(kwargs)
     self.comment = comment
     super().__init__(**kwargs)
Example #3
0
 def __init__(self, **kwargs):
     comment, kwargs = util.commentnode_kwargs(kwargs)  # pylint: disable=unused-variable
     super(ApacheCommentNode, self).__init__(**kwargs)
     self.comment = comment
    def test_commentnode(self):
        params = self._setup_commentnode()
        ctrl = self._setup_commentnode()

        comment, _ = util.commentnode_kwargs(params)
        self.assertEqual(comment, ctrl["comment"])
Example #5
0
 def __init__(self, **kwargs: Any):
     comment, kwargs = util.commentnode_kwargs(kwargs)  # pylint: disable=unused-variable
     super().__init__(**kwargs)
     self.comment = comment
Example #6
0
 def __init__(self, **kwargs: Any) -> None:
     comment, kwargs = util.commentnode_kwargs(kwargs)
     super().__init__(**kwargs)
     self.comment = comment