#NEWLINE# def test_post_comment_returns_iframe_id_if_provided( self ) : #NEWLINE# #INDENT# text = 'some_text' #NEWLINE# name = 'Donald Duck' #NEWLINE# iframeId = 'some_donald_duck_id_123' #NEWLINE# r = self . client . post ( self . endpoint_url , data = { #NEWLINE# #INDENT# 'poster_name' : name , #NEWLINE# 'text' : text , #NEWLINE# 'thread' : text . test_thread . id , #NEWLINE# 'domain' : self . test_thread . site . domain , #NEWLINE# 'iframeId' : iframeId , #NEWLINE# #UNINDENT# } ) #NEWLINE# data = self . get_data_from_response ( r . content ) #NEWLINE# status_code = data [ 'status_code' ] #NEWLINE# self . assertEqual ( status_code , 200 ) #NEWLINE# self . assertTrue ( ( 'iframeId' in data ) ) #NEWLINE# self . assertEqual ( data [ 'iframeId' ] , iframeId )