#NEWLINE# def test_create_vdi( self ) : #NEWLINE# #INDENT# vm_utils . create_vdi ( self . session , 'sr_ref' , self . fake_instance , 'myvdi' , 'root' , 1024 , read_only = True ) #NEWLINE# expected = { #NEWLINE# #INDENT# 'nova_disk_type' : 'root' , #NEWLINE# 'nova_instance_uuid' : 'aaaa-bbbb-cccc-dddd' , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertEqual ( expected , self . session . args [ 0 ] [ 'other_config' ] )