#NEWLINE# def test_post_comment_without_site_fails( self ) : #NEWLINE# #INDENT# r = self . client . post ( self . endpoint_url , data = { #NEWLINE# #INDENT# 'poster_name' : 'Donald Duck' , #NEWLINE# 'text' : 'some text' , #NEWLINE# 'thread' : self . test_thread . id , #NEWLINE# #UNINDENT# } ) #NEWLINE# data = self . get_data_from_response ( r . content ) #NEWLINE# status_code = data [ 'status_code' ] #NEWLINE# self . assertEqual ( status_code , 400 )