def METHOD_NAME(self, monkeypatch):
    monkeypatch.setattr(requests.sessions.Session, 'post', mock_token_request_factory(expires_in=50))
    monkeypatch.setattr(OAuth2ClientCredentialsSession, 'update_token', raise_error)
    auth = OAuth2ClientCredentialsSession("test", "test", "test")
    auth.expiration_time = time.time() - 1
    with pytest.raises(ValueError):
        auth.get("https://www.ibm.com")