#NEWLINE# @ catch_notimplementederror #NEWLINE# def _check_available_resource_fields( self , host_status ) : #NEWLINE# #INDENT# keys = [ 'vcpus' , 'memory_mb' , 'local_gb' , 'vcpus_used' , 'memory_mb_used' , 'hypervisor_type' , 'hypervisor_version' , 'hypervisor_hostname' , 'cpu_info' , 'disk_available_least' , 'supported_instances' ] #NEWLINE# for key in host_status : #NEWLINE# #INDENT# self . assertIn ( key , host_status ) #NEWLINE# #UNINDENT# self . assertIsInstance ( host_status [ 'hypervisor_version' ] , int )