@@ -36,6 +36,7 @@ def test_constructor():
36
36
"https://www.googleapis.com/auth/cloud-platform" ,
37
37
"https://www.googleapis.com/auth/cloud-platform.read-only" ,
38
38
],
39
+ api_audience = "foo2.googleapis.com" ,
39
40
)
40
41
41
42
assert options .api_endpoint == "foo.googleapis.com"
@@ -46,6 +47,7 @@ def test_constructor():
46
47
"https://www.googleapis.com/auth/cloud-platform" ,
47
48
"https://www.googleapis.com/auth/cloud-platform.read-only" ,
48
49
]
50
+ assert options .api_audience == "foo2.googleapis.com"
49
51
50
52
51
53
def test_constructor_with_encrypted_cert_source ():
@@ -114,6 +116,7 @@ def test_from_dict():
114
116
"https://www.googleapis.com/auth/cloud-platform" ,
115
117
"https://www.googleapis.com/auth/cloud-platform.read-only" ,
116
118
],
119
+ "api_audience" : "foo2.googleapis.com" ,
117
120
}
118
121
)
119
122
@@ -126,6 +129,7 @@ def test_from_dict():
126
129
"https://www.googleapis.com/auth/cloud-platform.read-only" ,
127
130
]
128
131
assert options .api_key is None
132
+ assert options .api_audience == "foo2.googleapis.com"
129
133
130
134
131
135
def test_from_dict_bad_argument ():
0 commit comments