#NEWLINE# def test_vbd_get_rec( self ) : #NEWLINE# #INDENT# session = mock . Mock ( ) #NEWLINE# session . call_xenapi . return_value = 'foo' #NEWLINE# self . assertEqual ( 'foo' , vm_utils . _vbd_get_rec ( session , 'vbd_ref' ) ) #NEWLINE# session . call_xenapi . assert_called_once_with ( 'VBD.get_record' , 'vbd_ref' )