#NEWLINE# def test_create_ephemeral_disk( self ) : #NEWLINE# #INDENT# mock_instance = fake_instance . fake_instance_obj ( self . context ) #NEWLINE# mock_ephemeral_info = { #NEWLINE# #INDENT# 'path' : 'fake_eph_path' , #NEWLINE# 'format' : 'vhd' , #NEWLINE# 'size' : 10 , #NEWLINE# #UNINDENT# } #NEWLINE# mock_create_dynamic_vhd = self . _vmops . _vhdutils . create_dynamic_vhd #NEWLINE# self . _vmops . _create_ephemeral_disk ( mock_ephemeral_info . name , mock_ephemeral_info ) #NEWLINE# mock_create_dynamic_vhd . assert_called_once_with ( 'fake_eph_path' , ( 10 * units . Gi ) )