#NEWLINE# def test_resize_volume_direct( self ) : #NEWLINE# #INDENT# inst = self . instance #NEWLINE# vol = fake_body . volume #NEWLINE# fake_body = { #NEWLINE# #INDENT# 'volume' : { #NEWLINE# #INDENT# 'size' : 2 , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# inst . manager . action = Mock ( ) #NEWLINE# ret = vol . resize ( 2 ) #NEWLINE# inst . manager . action . assert_called_once_with ( inst , 'resize' , body = fake_body )