#NEWLINE# def test_comments_for_tasks( self ) : #NEWLINE# #INDENT# url = '/tasks/{0}/comments/' . format ( self . tasks [ 'one' ] . id ) #NEWLINE# response = self . client . get ( url ) #NEWLINE# self . assertResult ( response , [ { #NEWLINE# #INDENT# 'id' : self . comments [ 'for_task_one' ] . id , #NEWLINE# 'content_type' : self . comments [ 'for_task_one' ] . content_type . id , #NEWLINE# 'object_id' : self . comments [ 'for_task_one' ] . object_id , #NEWLINE# 'text' : self . comments [ 'for_task_one' ] . text , #NEWLINE# #UNINDENT# } ] ) #NEWLINE# url = '/tasks/{0}/comments/' . format ( self . tasks [ 'two' ] . id ) #NEWLINE# response = self . client . get ( url ) #NEWLINE# self . assertResult ( response , [ { #NEWLINE# #INDENT# 'id' : self . comments [ 'for_task_two' ] . id , #NEWLINE# 'content_type' : self . comments [ 'for_task_two' ] . content_type . id , #NEWLINE# 'object_id' : self . comments [ 'for_task_two' ] . object_id , #NEWLINE# 'text' : self . comments [ 'for_task_two' ] . text , #NEWLINE# #UNINDENT# } ] )