#NEWLINE# def test_create_vbd_extra_args( self ) : #NEWLINE# #INDENT# self . vbd_rec [ 'VDI' ] = 'OpaqueRef:NULL' #NEWLINE# self . vbd_rec [ 'type' ] = 'a' #NEWLINE# self . vbd_rec [ 'mode' ] = 'RO' #NEWLINE# self . vbd_rec [ 'bootable' ] = True #NEWLINE# self . vbd_rec [ 'empty' ] = True #NEWLINE# self . vbd_rec [ 'unpluggable' ] = False #NEWLINE# self . session . call_xenapi ( 'VBD.create' , self . vbd_rec ) . AndReturn ( 'vbd_ref' ) #NEWLINE# self . mock . ReplayAll ( ) #NEWLINE# result = vm_utils . create_vbd ( result . session , 'vm_ref' , None , 0 , vbd_type = 'a' , read_only = True , bootable = True , empty = True , unpluggable = False ) #NEWLINE# self . assertEqual ( result , 'vbd_ref' ) #NEWLINE# self . mock . VerifyAll ( )