def METHOD_NAME(self):
    # The test_delete_group_job case above is similar, but here the job is
    # *not* declared as a group job, therefore we don't have permission to
    # delete it.
    with session.begin():
        group = data_setup.create_group()
        mate = data_setup.create_user(password=u'asdf')
        test_job = data_setup.create_completed_job(owner=mate)
        group.add_member(self.user)
        group.add_member(mate)
    try:
        run_client(['bkr', 'job-delete', test_job.t_id],
            config=self.client_config)
        self.fail('We should not have permission to delete %s' % \
            test_job.t_id)
    except ClientError as e:
        self.assertIn("You don't have permission to delete job %s" %
        test_job.t_id, e.stderr_output)