#NEWLINE# def test_capacity_no_reserve_nodedown( self ) : #NEWLINE# #INDENT# cap = self . _capacity ( 0.0 ) #NEWLINE# cell_free_ram = sum ( ( compute [ 3 ] for compute in FAKE_COMPUTES [ : ( - 1 ) ] ) ) #NEWLINE# self . assertEqual ( cell_free_ram , cap [ 'ram_free' ] [ 'total_mb' ] ) #NEWLINE# free_disk = sum ( ( cell_free_ram [ 4 ] for compute in FAKE_COMPUTES [ : ( - 1 ) ] ) ) #NEWLINE# cell_free_disk = ( 1024 * free_disk ) #NEWLINE# self . assertEqual ( cell_free_disk , cap [ 'disk_free' ] [ 'total_mb' ] )