Lines Matching refs:HOST1
24 HOST1 = 'host1' variable in HostLockManagerTest
80 self.afe.get_hosts(hostname=self.HOST1).AndReturn(None)
82 actual = self.manager._check_host(self.HOST1, None)
89 self.afe.get_hosts(hostname=self.HOST1).AndReturn(host_info)
91 actual = self.manager._check_host(self.HOST1, self.manager.LOCK)
98 self.afe.get_hosts(hostname=self.HOST1).AndReturn(host_info)
100 actual = self.manager._check_host(self.HOST1, self.manager.UNLOCK)
107 self.afe.get_hosts(hostname=self.HOST1).AndReturn(host_info)
109 host_with_dot = '.'.join([self.HOST1, 'cros'])
111 self.assertEquals(self.HOST1, actual)
117 self.afe.get_hosts(hostname=self.HOST1).AndReturn(host_info)
119 host_with_dot = '.'.join([self.HOST1, 'cros'])
121 self.assertEquals(self.HOST1, actual)
128 manager.locked_hosts = set([self.HOST1])
130 self.assertEquals(set([self.HOST1, self.HOST2]), manager.locked_hosts)
135 hosts = [self.HOST1, self.HOST2]
137 manager.locked_hosts = set([self.HOST1, self.HOST3])
139 self.assertEquals(set([self.HOST1, self.HOST2, self.HOST3]),
145 hosts = [self.HOST1, self.HOST2]
154 self.manager.locked_hosts = set([self.HOST1])
156 self.assertEquals(set([self.HOST1]), self.manager.locked_hosts)
161 hosts = [self.HOST1, self.HOST2]
163 manager.locked_hosts = set([self.HOST1, self.HOST3])
170 hosts = [self.HOST1, self.HOST2]
172 manager.locked_hosts = set([self.HOST1, self.HOST2, self.HOST3])
179 hosts = set([self.HOST1])
182 self.manager._check_host(self.HOST1,
183 self.manager.LOCK).AndReturn(self.HOST1)
185 host_filter_data={'hostname__in': [self.HOST1]},
190 self.assertEquals(set([self.HOST1, self.HOST2]),
196 hosts = set([self.HOST1])
197 self.manager.locked_hosts = set([self.HOST1, self.HOST2])
199 self.manager._check_host(self.HOST1,
200 self.manager.UNLOCK).AndReturn(self.HOST1)
202 host_filter_data={'hostname__in': [self.HOST1]},
211 hosts = set([self.HOST1])
214 self.manager._check_host(self.HOST1,
215 self.manager.LOCK).AndReturn(self.HOST1)
217 host_filter_data={'hostname__in': [self.HOST1]},