#NEWLINE# def test_normal( self ) : #NEWLINE# #INDENT# 'Establish that the data about a project update retrieved from the\n        project updates endpoint is provided.\n        ' #NEWLINE# with client . test_mode as t : #NEWLINE# #INDENT# t . register_json ( '/projects/1/' , { #NEWLINE# #INDENT# 'id' : 1 , #NEWLINE# 'related' : { #NEWLINE# #INDENT# 'last_update' : '/api/v1/projects/1/project_updates/42/' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# t . register_json ( '/projects/1/project_updates/42/' , { #NEWLINE# #INDENT# 'elapsed' : 1335024000.0 , #NEWLINE# 'extra' : 'ignored' , #NEWLINE# 'failed' : False , #NEWLINE# 'status' : 'successful' , #NEWLINE# #UNINDENT# } ) #NEWLINE# result = self . res . status ( 1 ) #NEWLINE# self . assertEqual ( result , { #NEWLINE# #INDENT# 'elapsed' : 1335024000.0 , #NEWLINE# 'failed' : False , #NEWLINE# 'status' : 'successful' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( len ( t . requests ) , 2 )