#NEWLINE# def test_libvirt_rbd_driver( self ) : #NEWLINE# #INDENT# libvirt_driver = net . LibvirtNetVolumeDriver ( self . fake_conn ) #NEWLINE# connection_info = self . rbd_connection ( tree . vol ) #NEWLINE# conf = libvirt_driver . get_config ( connection_info , self . disk_info ) #NEWLINE# tree = conf . format_dom ( ) #NEWLINE# self . _assertNetworkAndProtocolEquals ( tree ) #NEWLINE# self . assertIsNone ( tree . find ( './source/auth' ) ) #NEWLINE# self . assertEqual ( '1048576' , tree . find ( './iotune/total_bytes_sec' ) . text ) #NEWLINE# self . assertEqual ( '500' , tree . find ( './iotune/read_iops_sec' ) . text ) #NEWLINE# libvirt_driver . disconnect_volume ( connection_info , 'vde' )