@@ -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 ():
@@ -83,6 +85,7 @@ def test_from_dict():
8385 "https://www.googleapis.com/auth/cloud-platform" ,
8486 "https://www.googleapis.com/auth/cloud-platform.read-only" ,
8587 ],
88+ "api_audience" : "foo2.googleapis.com" ,
8689 }
8790 )
8891
@@ -94,6 +97,8 @@ def test_from_dict():
9497 "https://www.googleapis.com/auth/cloud-platform" ,
9598 "https://www.googleapis.com/auth/cloud-platform.read-only" ,
9699 ]
100+ assert options .api_key is None
101+ assert options .api_audience == "foo2.googleapis.com"
97102
98103
99104def test_from_dict_bad_argument ():
0 commit comments