Merge branch 'main' into avm99963-monorail
Merged commit 3779da353b36d43cf778e7d4f468097714dd4540
GitOrigin-RevId: 6451a5c6b75afb0fd1f37b3f14521148d0722ea8
diff --git a/services/test/client_config_svc_test.py b/services/test/client_config_svc_test.py
index 5e9b87a..d8a305e 100644
--- a/services/test/client_config_svc_test.py
+++ b/services/test/client_config_svc_test.py
@@ -20,35 +20,32 @@
def __init__(self, content):
self.content = content
- def setUp(self):
- self.handler = client_config_svc.LoadApiClientConfigs()
-
def testProcessResponse_InvalidJSON(self):
r = self.FakeResponse('}{')
with self.assertRaises(ValueError):
- self.handler._process_response(r)
+ client_config_svc._process_response(r)
def testProcessResponse_NoContent(self):
r = self.FakeResponse('{"wrong-key": "some-value"}')
with self.assertRaises(KeyError):
- self.handler._process_response(r)
+ client_config_svc._process_response(r)
def testProcessResponse_NotB64(self):
# 'asd' is not a valid base64-encoded string.
r = self.FakeResponse('{"content": "asd"}')
with self.assertRaises(TypeError):
- self.handler._process_response(r)
+ client_config_svc._process_response(r)
def testProcessResponse_NotProto(self):
# 'asdf' is a valid base64-encoded string.
r = self.FakeResponse('{"content": "asdf"}')
with self.assertRaises(Exception):
- self.handler._process_response(r)
+ client_config_svc._process_response(r)
def testProcessResponse_Success(self):
with open(client_config_svc.CONFIG_FILE_PATH) as f:
r = self.FakeResponse('{"content": "%s"}' % base64.b64encode(f.read()))
- c = self.handler._process_response(r)
+ c = client_config_svc._process_response(r)
assert '123456789.apps.googleusercontent.com' in c