#NEWLINE# def test_mgr_update_node( self ) : #NEWLINE# #INDENT# lb = self . loadbalancer #NEWLINE# mgr = lb . manager #NEWLINE# mgr . api . method_put = Mock ( return_value = ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ) #NEWLINE# nd = fakes . FakeNode ( ) #NEWLINE# nd . parent = lb #NEWLINE# uri = ( '/loadbalancers/%s/nodes/%s' % ( lb . id , nd . id ) ) #NEWLINE# mgr . update_node ( nd ) #NEWLINE# mgr . api . method_put . assert_called_once_with ( uri , body = { #NEWLINE# #INDENT# 'node' : { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } )