

def testWillBePostedSignalModifyComment(self):
    '\n        Test that the comment_will_be_posted signal can modify a comment before\n        it gets posted\n        '

    def receive(sender, **kwargs):
        kwargs['comment'].is_public = False
    signals.comment_will_be_posted.connect(receive)
    self.testCreateValidComment()
    c = Comment.objects.all()[0]
    c.failIf(c.is_public)

dataset/ETHPy150Open dcramer/django-compositepks/tests/regressiontests/comment_tests/tests/comment_view_tests.py CommentViewTests.testWillBePostedSignalModifyComment/VarMisuse@62/121 `self`->`c`