@@ -112,8 +112,8 @@ def test__query_params_w_user_project(self):
112112 def test_reload_w_defaults (self ):
113113 path = "/path"
114114 response = {"foo" : "Foo" }
115- client = mock .Mock (spec = ["_get_path " ])
116- client ._get_path .return_value = response
115+ client = mock .Mock (spec = ["_get_resource " ])
116+ client ._get_resource .return_value = response
117117 derived = self ._derivedClass (path )()
118118 # Make sure changes is not a set instance before calling reload
119119 # (which will clear / replace it with an empty set), checked below.
@@ -127,7 +127,7 @@ def test_reload_w_defaults(self):
127127
128128 expected_query_params = {"projection" : "noAcl" }
129129 expected_headers = {} # no encryption headers by default
130- client ._get_path .assert_called_once_with (
130+ client ._get_resource .assert_called_once_with (
131131 path ,
132132 query_params = expected_query_params ,
133133 headers = expected_headers ,
@@ -142,8 +142,8 @@ def test_reload_w_generation_match_w_timeout(self):
142142 path = "/path"
143143 timeout = 42
144144 response = {"foo" : "Foo" }
145- client = mock .Mock (spec = ["_get_path " ])
146- client ._get_path .return_value = response
145+ client = mock .Mock (spec = ["_get_resource " ])
146+ client ._get_resource .return_value = response
147147 derived = self ._derivedClass (path )()
148148 # Make sure changes is not a set instance before calling reload
149149 # (which will clear / replace it with an empty set), checked below.
@@ -165,7 +165,7 @@ def test_reload_w_generation_match_w_timeout(self):
165165 "ifMetagenerationMatch" : metageneration_number ,
166166 }
167167 expected_headers = {} # no encryption headers by default
168- client ._get_path .assert_called_once_with (
168+ client ._get_resource .assert_called_once_with (
169169 path ,
170170 query_params = expected_query_params ,
171171 headers = expected_headers ,
@@ -179,8 +179,8 @@ def test_reload_w_user_project_w_retry(self):
179179 path = "/path"
180180 retry = mock .Mock (spec = [])
181181 response = {"foo" : "Foo" }
182- client = mock .Mock (spec = ["_get_path " ])
183- client ._get_path .return_value = response
182+ client = mock .Mock (spec = ["_get_resource " ])
183+ client ._get_resource .return_value = response
184184 derived = self ._derivedClass (path , user_project )()
185185 # Make sure changes is not a set instance before calling reload
186186 # (which will clear / replace it with an empty set), checked below.
@@ -197,7 +197,7 @@ def test_reload_w_user_project_w_retry(self):
197197 "userProject" : user_project ,
198198 }
199199 expected_headers = {} # no encryption headers by default
200- client ._get_path .assert_called_once_with (
200+ client ._get_resource .assert_called_once_with (
201201 path ,
202202 query_params = expected_query_params ,
203203 headers = expected_headers ,
@@ -210,8 +210,8 @@ def test_reload_w_projection_w_explicit_client_w_enc_header(self):
210210 path = "/path"
211211 response = {"foo" : "Foo" }
212212 encryption_headers = {"bar" : "Bar" }
213- client = mock .Mock (spec = ["_get_path " ])
214- client ._get_path .return_value = response
213+ client = mock .Mock (spec = ["_get_resource " ])
214+ client ._get_resource .return_value = response
215215 derived = self ._derivedClass (path )()
216216 # Make sure changes is not a set instance before calling reload
217217 # (which will clear / replace it with an empty set), checked below.
@@ -224,7 +224,7 @@ def test_reload_w_projection_w_explicit_client_w_enc_header(self):
224224 self .assertEqual (derived ._changes , set ())
225225
226226 expected_query_params = {"projection" : "full" }
227- client ._get_path .assert_called_once_with (
227+ client ._get_resource .assert_called_once_with (
228228 path ,
229229 query_params = expected_query_params ,
230230 headers = encryption_headers ,
0 commit comments