Lines Matching refs:models
10 from autotest_lib.frontend.afe import models, model_logic
31 everyone_acl = models.AclGroup.objects.get(name='Everyone')
38 models.AclGroup.on_host_membership_change()
55 models.Host.objects.populate_relationships(
56 [host], models.HostAttribute, 'attribute_list')
61 previous_config = models.RESPECT_STATIC_ATTRIBUTES
62 models.RESPECT_STATIC_ATTRIBUTES = False
63 host1 = models.Host.objects.create(hostname='test_host1')
73 models.RESPECT_STATIC_ATTRIBUTES = previous_config
77 previous_config = models.RESPECT_STATIC_ATTRIBUTES
78 models.RESPECT_STATIC_ATTRIBUTES = True
79 host1 = models.Host.objects.create(hostname='test_host1')
88 models.RESPECT_STATIC_ATTRIBUTES = previous_config
92 previous_config = models.RESPECT_STATIC_ATTRIBUTES
93 models.RESPECT_STATIC_ATTRIBUTES = False
94 host1 = models.Host.objects.create(hostname='test_host1')
102 models.RESPECT_STATIC_ATTRIBUTES = previous_config
106 previous_config = models.RESPECT_STATIC_ATTRIBUTES
107 models.RESPECT_STATIC_ATTRIBUTES = True
108 host1 = models.Host.objects.create(hostname='test_host1')
117 models.RESPECT_STATIC_ATTRIBUTES = previous_config
124 host = models.Host.create_one_time_host('othost')
126 self.assertEquals(host.status, models.Host.Status.READY)
128 host.status = models.Host.Status.RUNNING
131 host2 = models.Host.add_object(hostname='othost')
133 self.assertEquals(host2.status, models.Host.Status.RUNNING)
137 host = models.Host.create_one_time_host('othost')
142 label = models.Label.add_object(name='board:test')
160 return models.SpecialTask.objects.create(
161 host=self.hosts[0], task=models.SpecialTask.Task.VERIFY,
162 requested_by=models.User.current_user())
202 task = models.SpecialTask.objects.create(
203 host=self.hosts[0], task=models.SpecialTask.Task.VERIFY,
240 self.assertTrue(models.Host.objects.get(id=self.hosts[0].id))
247 hosts = models.Host.objects.all()
264 hosts = models.Host.objects.all().filter(hostname__in=to_delete)
266 all_hosts = models.Host.objects.all()
282 self.assertEqual(1, models.Job.objects.all().count())
285 self.assertEqual(0, models.Job.objects.all().count())
292 self.assertEqual(2, models.Job.objects.all().count())
294 models.Job.objects.all().delete()
295 self.assertEqual(0, models.Job.objects.all().count())
572 hosts = [models.Host.deserialize(host) for host in hosts_serialized]
573 jobs = [models.Job.deserialize(job) for job in jobs_serialized]
612 models.Job.deserialize(serialized)
614 job = models.Job.objects.get(pk=job.id)