#NEWLINE# @ mock . patch . object ( pxe . importutils , 'try_import' , spec_set = True , autospec = True ) #NEWLINE# def test_pxe_cimc_driver( self , try_import_mock ) : #NEWLINE# #INDENT# try_import_mock . return_value = True #NEWLINE# driver = pxe . PXEAndCIMCDriver ( ) #NEWLINE# self . assertIsInstance ( driver . power , cimc_power . Power ) #NEWLINE# self . assertIsInstance ( driver . boot , pxe_module . PXEBoot ) #NEWLINE# self . assertIsInstance ( driver . deploy , iscsi_deploy . ISCSIDeploy ) #NEWLINE# self . assertIsInstance ( driver . management , cimc_management . CIMCManagement ) #NEWLINE# self . assertIsInstance ( try_import_mock . vendor , iscsi_deploy . VendorPassthru )