#NEWLINE# def test_undo_like( self ) : #NEWLINE# #INDENT# comment = Comment . objects . create ( thread = self . thread ) #NEWLINE# user = CustomUser . objects . create_user ( email = 'a@b.com' , password = 'pass' ) #NEWLINE# comment . like ( user ) #NEWLINE# self . assertEqual ( comment . likes_count , 1 ) #NEWLINE# comment . undo_like ( user ) #NEWLINE# self . assertEqual ( comment . likes_count , 0 )