#NEWLINE# @ mock . patch . object ( requests , 'head' , autospec = True ) #NEWLINE# def _test_show( self , head_mock , mtime , mtime_date ) : #NEWLINE# #INDENT# head_mock . return_value . status_code = http_client . OK #NEWLINE# head_mock . return_value . headers = { #NEWLINE# #INDENT# 'Content-Length' : 100 , #NEWLINE# 'Last-Modified' : head_mock , #NEWLINE# #UNINDENT# } #NEWLINE# result = self . service . show ( self . href ) #NEWLINE# head_mock . assert_called_once_with ( self . href ) #NEWLINE# self . assertEqual ( { #NEWLINE# #INDENT# 'size' : 100 , #NEWLINE# 'updated_at' : mtime_date , #NEWLINE# 'properties' : { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , result )