#NEWLINE# def test_comment_history_create_maybe( self ) : #NEWLINE# #INDENT# '\n        should create the comment (hystory) if a comment for it does not exists\n        ' #NEWLINE# comment = utils . create_comment ( topic = self . topic ) #NEWLINE# comment_history = CommentHistory . create_maybe ( comment ) #NEWLINE# self . assertTrue ( comment_history . pk ) #NEWLINE# comment_history2 = CommentHistory . create_maybe ( comment ) #NEWLINE# self . assertIsNone ( comment_history2 ) #NEWLINE# self . assertEqual ( len ( CommentHistory . objects . filter ( comment_fk = comment . pk ) ) , 1 )