def test_get_comment_link_text(self):
        comment = "Comment"

        review = Review.objects.create(review_request=self.review_request,
                                       user=self.user)
        file_attachment_comment = review.file_attachment_comments.create(
            file_attachment=self.file_attachment2,
            text=comment)

        review_ui = file_attachment_comment.review_ui
        self.spy_on(review_ui.get_comment_link_text)

        file_attachment_comment.get_link_text()

        self.assertTrue(review_ui.get_comment_link_text.called)
Testing FileAttachmentReviewUI sandboxes get_comment_link_text
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/reviews/ui/tests.py/SandboxTests.test_get_comment_link_text