def setUp(self): super(TestExcdWatcher, self).setUp() self.m_config = Mock() self.m_config.IFACE_PREFIX = "tap" self.m_hosts_ipset = Mock(spec=IpsetActor) self.watcher = _EtcdWatcher(self.m_config, self.m_hosts_ipset) self.m_splitter = Mock(spec=UpdateSplitter) self.watcher.splitter = self.m_splitter
def setUp(self): super(TestExcdWatcher, self).setUp() self.m_config = Mock() self.m_config.HOSTNAME = "hostname" self.m_config.IFACE_PREFIX = "tap" self.m_hosts_ipset = Mock(spec=IpsetActor) self.watcher = _EtcdWatcher(self.m_config, self.m_hosts_ipset) self.m_splitter = Mock(spec=UpdateSplitter) self.watcher.splitter = self.m_splitter self.client = Mock(spec=etcd.Client) self.watcher.client = self.client