def test_get_authenticated_service_HttpError(self):
        self.mock_google_auth_config.authenticate_with_google.side_effect = (
            MockHttpError(404))

        with self.assertRaises(external.BigQueryCommunicationError):
            external.get_authenticated_service(self.mock_google_auth_config)
Should wrap HttpError to BigQueryCommunicationError.
dataset/ETHPy150Open m-lab/telescope/tests/test_external.py/GetAuthenticatedServiceTest.test_get_authenticated_service_HttpError