#NEWLINE# def test_dislike_nonexisting_comment_fails( self ) : #NEWLINE# #INDENT# r = self . client . post ( reverse ( 'comments:dislike_comment' , kwargs = { #NEWLINE# #INDENT# 'comment_id' : 9999 , #NEWLINE# #UNINDENT# } ) , data = { #NEWLINE# #INDENT# 'domain' : self . test_site . domain , #NEWLINE# #UNINDENT# } ) #NEWLINE# data = self . get_data_from_response ( r . content ) #NEWLINE# status_code = data [ 'status_code' ] #NEWLINE# self . assertEqual ( status_code , 404 ) #NEWLINE# comments = Comment . objects . filter ( disliked_by_count__gt = 0 ) #NEWLINE# self . assertEqual ( comments . count ( ) , 0 )