def setUp(self):
super(TestCiscoUcsmMechDriver, self).setUp()<EOL>self.set_up_mocks()<EOL>def new_ucsm_driver_init(mech_instance):<EOL><INDENT>mech_instance.ucsmsdk = None<EOL>mech_instance.handles = {}<EOL>mech_instance.supported_sriov_vnic_types = SRIOV_VNIC_TYPES<EOL>mech_instance.supported_pci_devs = SUPPORTED_PCI_DEVS<EOL>mech_instance.ucsm_host_dict = UCSM_HOST_DICT<EOL>conf.load_single_ucsm_config()<EOL><DEDENT>mock.patch.object(ucsm_network_driver.CiscoUcsmDriver,<EOL>'<STR_LIT>',<EOL>new=new_ucsm_driver_init).start()<EOL>self.mech_driver = md.CiscoUcsmMechanismDriver()<EOL>self.mech_driver.initialize()<EOL>self.vif_type = const.VIF_TYPE_802_QBH<EOL>self.db = ucsm_db.UcsmDbModel()<EOL>self.ucsm_driver = ucsm_network_driver.CiscoUcsmDriver()<EOL>self.ucsm_driver.ucsm_db = ucsm_db.UcsmDbModel()<EOL>conf.load_single_ucsm_config()<EOL>
Sets up mock Ucs Sdk.