@@ -36,6 +36,7 @@ def test_constructor():
3636 "https://www.googleapis.com/auth/cloud-platform" ,
3737 "https://www.googleapis.com/auth/cloud-platform.read-only" ,
3838 ],
39+ api_audience = "foo2.googleapis.com" ,
3940 )
4041
4142 assert options .api_endpoint == "foo.googleapis.com"
@@ -46,6 +47,7 @@ def test_constructor():
4647 "https://www.googleapis.com/auth/cloud-platform" ,
4748 "https://www.googleapis.com/auth/cloud-platform.read-only" ,
4849 ]
50+ assert options .api_audience == "foo2.googleapis.com"
4951
5052
5153def test_constructor_with_encrypted_cert_source ():
@@ -114,6 +116,7 @@ def test_from_dict():
114116 "https://www.googleapis.com/auth/cloud-platform" ,
115117 "https://www.googleapis.com/auth/cloud-platform.read-only" ,
116118 ],
119+ "api_audience" : "foo2.googleapis.com" ,
117120 }
118121 )
119122
@@ -126,6 +129,7 @@ def test_from_dict():
126129 "https://www.googleapis.com/auth/cloud-platform.read-only" ,
127130 ]
128131 assert options .api_key is None
132+ assert options .api_audience == "foo2.googleapis.com"
129133
130134
131135def test_from_dict_bad_argument ():
0 commit comments