#NEWLINE# def test_compat_allocation_ratios_default_values( self ) : #NEWLINE# #INDENT# compute_dict = fake_compute_node . copy ( ) #NEWLINE# compute_dict [ 'cpu_allocation_ratio' ] = 0.0 #NEWLINE# compute_dict [ 'ram_allocation_ratio' ] = 0.0 #NEWLINE# compute_dict [ 'disk_allocation_ratio' ] = 0.0 #NEWLINE# cls = objects . ComputeNode #NEWLINE# compute = cls . _from_db_object ( self . context , cls ( ) , compute_dict ) #NEWLINE# self . assertEqual ( 16.0 , compute . cpu_allocation_ratio ) #NEWLINE# self . assertEqual ( 1.5 , compute_dict . ram_allocation_ratio ) #NEWLINE# self . assertEqual ( 1.0 , compute . disk_allocation_ratio )