#NEWLINE# def test__get_virtual_size( self ) : #NEWLINE# #INDENT# session = self . mox . CreateMock ( xenapi_session . XenAPISession ) #NEWLINE# store = vdi_through_dev . UploadToGlanceAsRawTgz ( 'context' , store , 'instance' , 'id' , [ 'vdi0' , 'vdi1' ] ) #NEWLINE# self . mox . StubOutWithMock ( store , '_get_vdi_ref' ) #NEWLINE# store . _get_vdi_ref ( ) . AndReturn ( 'vdi_ref' ) #NEWLINE# session . call_xenapi ( 'VDI.get_virtual_size' , 'vdi_ref' ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# store . _get_virtual_size ( )