Lines Matching refs:Job
43 """Test that we properly find the last ran job."""
64 """Test that, for a given host, we get the last job ran on that host."""
69 old_job = models.Job(owner='me', name='old_job',
73 job=old_job, host=host, status='test',
77 new_job = models.Job(owner='me', name='new_job',
81 job=new_job, host=host, status='test',
94 self.assertEqual(result['job']['name'], 'new_job')
98 """Test that we only get a job that is for the given host."""
100 correct_job = models.Job(owner='me', name='correct_job',
106 job=correct_job, host=correct_host, status='test',
110 wrong_job = models.Job(owner='me', name='wrong_job',
116 job=wrong_job, host=wrong_host, status='test',
129 self.assertEqual(result['job']['name'], 'correct_job')
138 new_job = models.Job(owner='me', name='new_job',
142 job=new_job, host=host, status='test',
156 self.assertEqual(result['job']['name'], 'new_job')