Lines Matching refs:hosts
30 host1, host2 = self.hosts[1:3]
161 host=self.hosts[0], task=models.SpecialTask.Task.VERIFY,
201 job = self._create_job(hosts=[0])
203 host=self.hosts[0], task=models.SpecialTask.Task.VERIFY,
219 entry = self._create_job(hosts=[1]).hostqueueentry_set.all()[0]
237 self.assertFalse(self.hosts[0].invalid)
238 self.hosts[0].delete()
239 self.assertTrue(self.hosts[0].invalid)
240 self.assertTrue(models.Host.objects.get(id=self.hosts[0].id))
244 for host in self.hosts:
247 hosts = models.Host.objects.all()
248 hosts.delete()
249 self.assertEqual(hosts.count(), len(self.hosts))
251 for host in hosts:
261 for host in self.hosts:
264 hosts = models.Host.objects.all().filter(hostname__in=to_delete)
265 hosts.delete()
267 self.assertEqual(all_hosts.count(), len(self.hosts))
281 job = self._create_job(hosts=[1])
289 self._create_job(hosts=[1])
290 self._create_job(hosts=[2])
572 hosts = [models.Host.deserialize(host) for host in hosts_serialized]
576 'hosts': [host.serialize() for host in hosts],
592 job = self._create_job(hosts=[1])
606 job = self._create_job(hosts=[1])