MCPcopy Index your code
hub / github.com/python-openxml/python-docx / it_knows_its_author

Method it_knows_its_author

tests/test_comments.py:191–195  ·  view source on GitHub ↗
(self, comments_part_: Mock)

Source from the content-addressed store, hash-verified

189 assert comment.comment_id == 42
190
191 def it_knows_its_author(self, comments_part_: Mock):
192 comment_elm = cast(CT_Comment, element("w:comment{w:id=42,w:author=Steve Canny}"))
193 comment = Comment(comment_elm, comments_part_)
194
195 assert comment.author == "Steve Canny"
196
197 def it_knows_the_initials_of_its_author(self, comments_part_: Mock):
198 comment_elm = cast(CT_Comment, element("w:comment{w:id=42,w:initials=SJC}"))

Callers

nothing calls this directly

Calls 2

CommentClass · 0.90
elementFunction · 0.85

Tested by

no test coverage detected