@@ -521,6 +521,7 @@ def test_create_bucket_with_string_conflict(self):
521521 from google .cloud .exceptions import Conflict
522522
523523 project = "PROJECT"
524+ user_project = "USER_PROJECT"
524525 other_project = "OTHER_PROJECT"
525526 credentials = _make_credentials ()
526527 client = self ._make_one (project = project , credentials = credentials )
@@ -531,7 +532,7 @@ def test_create_bucket_with_string_conflict(self):
531532 client ._connection .API_BASE_URL ,
532533 "storage" ,
533534 client ._connection .API_VERSION ,
534- "b?project=%s" % (other_project ,),
535+ "b?project=%s&userProject=%s " % (other_project , user_project ),
535536 ]
536537 )
537538 data = {"error" : {"message" : "Conflict" }}
@@ -542,7 +543,7 @@ def test_create_bucket_with_string_conflict(self):
542543 client ._http_internal = http
543544
544545 with self .assertRaises (Conflict ):
545- client .create_bucket (bucket_name , project = other_project )
546+ client .create_bucket (bucket_name , project = other_project , user_project = user_project )
546547
547548 http .request .assert_called_once_with (
548549 method = "POST" , url = URI , data = mock .ANY , headers = mock .ANY
0 commit comments