#NEWLINE# @ mock . patch . object ( common , 'get_oneview_client' , spec_set = True , autospec = True ) #NEWLINE# def test_validate_oneview_resources_compatibility( self , mock_get_ov_client ) : #NEWLINE# #INDENT# oneview_client = mock_get_ov_client ( ) #NEWLINE# with task_manager . acquire ( self . context , self . node . uuid ) as task : #NEWLINE# #INDENT# common . validate_oneview_resources_compatibility ( task ) #NEWLINE# self . assertTrue ( oneview_client . validate_node_server_hardware . called ) #NEWLINE# self . assertTrue ( oneview_client . validate_node_server_hardware_type . called ) #NEWLINE# self . assertTrue ( oneview_client . check_server_profile_is_applied . called ) #NEWLINE# self . assertTrue ( oneview_client . is_node_port_mac_compatible_with_server_profile . called ) #NEWLINE# self . assertTrue ( oneview_client . validate_node_enclosure_group . called ) #NEWLINE# self . assertTrue ( oneview_client . validate_node_server_profile_template . called )