def test_connection_failure(self):
    build_id = '1234'
    session = get_retrying_requests_session()
    flexmock(session).should_receive('get').and_raise(requests.exceptions.RetryError)
    pnc_util = PNCUtil(mock_pnc_map(), session)
    with pytest.raises(requests.exceptions.RetryError):
        pnc_util.get_scm_archive_from_build_id(build_id)
def test_connection_failure(self):
    build_id = '1234'
    session = get_retrying_requests_session()
    flexmock(session).should_receive('get').and_raise(requests.exceptions.RetryError)
    pnc_util = PNCUtil(mock_pnc_map(), session)
    with pytest.raises(requests.exceptions.RetryError):
        pnc_util.get_scm_archive_from_build_id(build_id)