def METHOD_NAME(self):
    with session.begin():
        # /error/500 is treated specially by http_server.py, returns 500
        self.job.recipesets[0].recipes[0].logs[0].path = u'error'
        self.job.recipesets[0].recipes[0].logs[0].filename = u'500'
    out = run_client(['bkr', 'job-logs', '--size', self.job.t_id])
    lines = out.splitlines()
    self.assertEquals(lines[0], '<error:500> %srecipes/%s/logs/error/500' %
            (get_server_base(), self.recipe.id))