Lines Matching refs:manager

75         self.manager = host_lock_manager.HostLockManager(self.afe)
82 actual = self.manager._check_host(self.HOST1, None)
91 actual = self.manager._check_host(self.HOST1, self.manager.LOCK)
100 actual = self.manager._check_host(self.HOST1, self.manager.UNLOCK)
110 actual = self.manager._check_host(host_with_dot, self.manager.LOCK)
120 actual = self.manager._check_host(host_with_dot, self.manager.UNLOCK)
127 manager = self.MockHostLockManager(self.afe)
128 manager.locked_hosts = set([self.HOST1])
129 manager.lock(hosts, lock_reason='Locking for test')
130 self.assertEquals(set([self.HOST1, self.HOST2]), manager.locked_hosts)
136 manager = self.MockHostLockManager(self.afe)
137 manager.locked_hosts = set([self.HOST1, self.HOST3])
138 manager.lock(hosts, lock_reason='Locking for test')
140 manager.locked_hosts)
146 self.manager.locked_hosts = set(hosts)
147 self.manager.lock(hosts)
148 self.assertEquals(set(hosts), self.manager.locked_hosts)
154 self.manager.locked_hosts = set([self.HOST1])
155 self.manager.unlock(hosts)
156 self.assertEquals(set([self.HOST1]), self.manager.locked_hosts)
162 manager = self.MockHostLockManager(self.afe)
163 manager.locked_hosts = set([self.HOST1, self.HOST3])
164 manager.unlock(hosts)
165 self.assertEquals(set([self.HOST3]), manager.locked_hosts)
171 manager = self.MockHostLockManager(self.afe)
172 manager.locked_hosts = set([self.HOST1, self.HOST2, self.HOST3])
173 manager.unlock(hosts)
174 self.assertEquals(set([self.HOST3]), manager.locked_hosts)
180 self.manager.locked_hosts = set([self.HOST2])
181 self.mox.StubOutWithMock(self.manager, '_check_host')
182 self.manager._check_host(self.HOST1,
183 self.manager.LOCK).AndReturn(self.HOST1)
188 self.manager._host_modifier(hosts, self.manager.LOCK,
191 self.manager.locked_hosts)
197 self.manager.locked_hosts = set([self.HOST1, self.HOST2])
198 self.mox.StubOutWithMock(self.manager, '_check_host')
199 self.manager._check_host(self.HOST1,
200 self.manager.UNLOCK).AndReturn(self.HOST1)
205 self.manager._host_modifier(hosts, self.manager.UNLOCK)
206 self.assertEquals(set([self.HOST2]), self.manager.locked_hosts)
212 self.manager.locked_hosts = set([self.HOST2])
213 self.mox.StubOutWithMock(self.manager, '_check_host')
214 self.manager._check_host(self.HOST1,
215 self.manager.LOCK).AndReturn(self.HOST1)
221 self.manager._host_modifier(hosts, self.manager.LOCK)
222 self.assertEquals(set([self.HOST2]), self.manager.locked_hosts)