def setUp(self):
super(TopoDiscTest, self).setUp()<EOL>self.root_helper = '<STR_LIT>'<EOL>self.intf_list = ['<STR_LIT>', '<STR_LIT>']<EOL>self.updated_intf_list = ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>']<EOL>self.protocol_interface = '<STR_LIT>'<EOL>self.phy_interface = '<STR_LIT>'<EOL>period_fn = mock.patch(<EOL>'<STR_LIT>').start()<EOL>self.get_run_phy_intf = mock.patch(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>', return_value=self.intf_list).start()<EOL>self.enable_lldp = mock.patch(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>').start()<EOL>period_obj = period_fn.return_value<EOL>parent = mock.MagicMock()<EOL>parent.attach_mock(period_obj.run, '<STR_LIT>')<EOL>expected_calls = [mock.call.run()]<EOL>self.topo_disc = topo_disc.TopoDisc(None, self.root_helper)<EOL>period_fn.assert_any_call(topo_constants.PERIODIC_TASK_INTERVAL,<EOL>self.topo_disc.periodic_discovery_task)<EOL>parent.assert_has_calls(expected_calls)<EOL>
Setup Routine.