#NEWLINE# def test__update( self ) : #NEWLINE# #INDENT# sot = resource2 . Resource ( ) #NEWLINE# body = 'body' #NEWLINE# header = 'header' #NEWLINE# uri = 'uri' #NEWLINE# sot . _collect_attrs = mock . Mock ( return_value = ( body , header , uri ) ) #NEWLINE# sot . _body . update = mock . Mock ( ) #NEWLINE# sot . _header . update = mock . Mock ( ) #NEWLINE# sot . _uri . update = mock . Mock ( ) #NEWLINE# args = { #NEWLINE# #INDENT# 'arg' : 1 , #NEWLINE# #UNINDENT# } #NEWLINE# sot . _update ( ** args ) #NEWLINE# sot . _collect_attrs . assert_called_once_with ( args ) #NEWLINE# sot . _body . update . assert_called_once_with ( body ) #NEWLINE# sot . _header . update . assert_called_once_with ( header ) #NEWLINE# sot . _uri . update . assert_called_once_with ( uri )