def METHOD_NAME(self, mock_post):
    g = self.create_getter()
    j0 = {"config": "unknown_config", "id": 1}
    j1 = {"config": g.client_info["build_configs"][0], "id": 2}
    jobs = [j0, j1]
    response_data = utils.create_json_response()
    response_data['job_info'] = {'recipe_name': 'test'}
    mock_post.return_value = test_utils.Response(response_data)
    # successfull operation
    self.set_counts()
    ret = g.claim_job(jobs)
    self.compare_counts()
    self.assertEqual(response_data, ret)
    # didn't succeed
    response_data["success"] = False
    mock_post.return_value = test_utils.Response(response_data)
    self.set_counts()
    ret = g.claim_job(jobs)
    self.compare_counts()
    self.assertEqual(ret, None)
    # no jobs with matching config
    jobs = [j1]
    self.set_counts()
    ret = g.claim_job(jobs)
    self.compare_counts()
    self.assertEqual(ret, None)
    # try when server problems
    mock_post.return_value = test_utils.Response(response_data, do_raise=True)
    self.set_counts()
    ret = g.claim_job(jobs)
    self.compare_counts()
    self.assertEqual(ret, None)