#NEWLINE# def test_normal_with_lookup( self ) : #NEWLINE# #INDENT# 'Establish that the data about job specified by query is\n        returned correctly.\n        ' #NEWLINE# with client . test_mode as t : #NEWLINE# #INDENT# t . register_json ( '/jobs/?name=bar' , { #NEWLINE# #INDENT# 'count' : 1 , #NEWLINE# 'results' : [ { #NEWLINE# #INDENT# 'id' : 42 , #NEWLINE# 'name' : 'bar' , #NEWLINE# 'elapsed' : 1335024000.0 , #NEWLINE# 'extra' : 'ignored' , #NEWLINE# 'failed' : False , #NEWLINE# 'status' : 'successful' , #NEWLINE# #UNINDENT# } ] , #NEWLINE# 'next' : None , #NEWLINE# 'previous' : None , #NEWLINE# #UNINDENT# } , method = 'GET' ) #NEWLINE# result = self . res . status ( name = 'bar' ) #NEWLINE# self . assertEqual ( result , { #NEWLINE# #INDENT# 'elapsed' : 1335024000.0 , #NEWLINE# 'failed' : False , #NEWLINE# 'status' : 'successful' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( len ( t . requests ) , 1 )