Lines Matching refs:manager
56 self.manager = host_lock_manager.HostLockManager()
63 actual = self.manager._check_host('host1', None)
72 actual = self.manager._check_host(self.HOST1, self.manager.LOCK)
81 actual = self.manager._check_host(self.HOST1, self.manager.UNLOCK)
90 actual = self.manager._check_host(self.HOST1, self.manager.LOCK)
99 actual = self.manager._check_host(self.HOST1, self.manager.UNLOCK)
106 manager = self.MockHostLockManager()
107 manager.locked_hosts = set([self.HOST1])
108 manager.lock(hosts, lock_reason='Locking for test')
109 self.assertEquals(set([self.HOST1, self.HOST2]), manager.locked_hosts)
115 manager = self.MockHostLockManager()
116 manager.locked_hosts = set([self.HOST1, self.HOST3])
117 manager.lock(hosts, lock_reason='Locking for test')
119 manager.locked_hosts)
125 self.manager.locked_hosts = set(hosts)
126 self.manager.lock(hosts)
127 self.assertEquals(set(hosts), self.manager.locked_hosts)
133 self.manager.locked_hosts = set([self.HOST1])
134 self.manager.unlock(hosts)
135 self.assertEquals(set([self.HOST1]), self.manager.locked_hosts)