#NEWLINE# @ mock . patch . object ( pxe . importutils , 'try_import' , spec_set = True , autospec = True ) #NEWLINE# def test_pxe_ilo_driver( self , try_import_mock ) : #NEWLINE# #INDENT# try_import_mock . return_value = True #NEWLINE# driver = pxe . PXEAndIloDriver ( ) #NEWLINE# self . assertIsInstance ( driver . power , ilo_power . IloPower ) #NEWLINE# self . assertIsInstance ( try_import_mock . boot , pxe_module . PXEBoot ) #NEWLINE# self . assertIsInstance ( driver . deploy , iscsi_deploy . ISCSIDeploy ) #NEWLINE# self . assertIsInstance ( driver . vendor , iscsi_deploy . VendorPassthru ) #NEWLINE# self . assertIsInstance ( driver . console , ilo_console . IloConsoleInterface ) #NEWLINE# self . assertIsInstance ( driver . management , ilo_management . IloManagement ) #NEWLINE# self . assertIsInstance ( driver . inspect , ilo_inspect . IloInspect ) #NEWLINE# self . assertIsInstance ( driver . raid , agent . AgentRAID )