def METHOD_NAME(self):
    beakerd.process_new_recipes()
    beakerd.update_dirty_jobs()
    with session.begin():
        self.assertEqual(Job.by_id(self.job1.id).status, TaskStatus.aborted)
        self.assertEqual(Job.by_id(self.job2.id).status, TaskStatus.processed)