@@ -1863,7 +1863,7 @@ def test_create_job_non_empty_request_with_auto_populated_field():
18631863 call .assert_called ()
18641864 _ , args , _ = call .mock_calls [0 ]
18651865 # Ensure that the uuid4 field is set according to AIP 4235
1866- assert re .match (r"[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}" , args [0 ].request_id )
1866+ assert re .fullmatch (r"[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}" , args [0 ].request_id )
18671867 # clear UUID field so that the check below succeeds
18681868 args [0 ].request_id = None
18691869 assert args [0 ] == storage_batch_operations .CreateJobRequest (
@@ -2215,7 +2215,7 @@ def test_delete_job_non_empty_request_with_auto_populated_field():
22152215 call .assert_called ()
22162216 _ , args , _ = call .mock_calls [0 ]
22172217 # Ensure that the uuid4 field is set according to AIP 4235
2218- assert re .match (r"[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}" , args [0 ].request_id )
2218+ assert re .fullmatch (r"[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}" , args [0 ].request_id )
22192219 # clear UUID field so that the check below succeeds
22202220 args [0 ].request_id = None
22212221 assert args [0 ] == storage_batch_operations .DeleteJobRequest (
@@ -2533,7 +2533,7 @@ def test_cancel_job_non_empty_request_with_auto_populated_field():
25332533 call .assert_called ()
25342534 _ , args , _ = call .mock_calls [0 ]
25352535 # Ensure that the uuid4 field is set according to AIP 4235
2536- assert re .match (r"[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}" , args [0 ].request_id )
2536+ assert re .fullmatch (r"[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}" , args [0 ].request_id )
25372537 # clear UUID field so that the check below succeeds
25382538 args [0 ].request_id = None
25392539 assert args [0 ] == storage_batch_operations .CancelJobRequest (
@@ -4139,7 +4139,7 @@ def test_create_job_rest_required_fields(request_type=storage_batch_operations.C
41394139 found_field = None
41404140 for i , (key , value ) in enumerate (req .call_args .kwargs ['params' ]):
41414141 if key == "requestId" :
4142- assert re .match (r"[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}" , value )
4142+ assert re .fullmatch (r"[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}" , value )
41434143 found_field = i
41444144 break
41454145 if found_field is not None :
@@ -4318,7 +4318,7 @@ def test_delete_job_rest_required_fields(request_type=storage_batch_operations.D
43184318 found_field = None
43194319 for i , (key , value ) in enumerate (req .call_args .kwargs ['params' ]):
43204320 if key == "requestId" :
4321- assert re .match (r"[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}" , value )
4321+ assert re .fullmatch (r"[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}" , value )
43224322 found_field = i
43234323 break
43244324 if found_field is not None :
@@ -4495,7 +4495,7 @@ def test_cancel_job_rest_required_fields(request_type=storage_batch_operations.C
44954495 found_field = None
44964496 for i , (key , value ) in enumerate (req .call_args .kwargs ['params' ]):
44974497 if key == "requestId" :
4498- assert re .match (r"[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}" , value )
4498+ assert re .fullmatch (r"[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}" , value )
44994499 found_field = i
45004500 break
45014501 if found_field is not None :
@@ -5128,7 +5128,7 @@ def test_create_job_empty_call_grpc():
51285128 call .assert_called ()
51295129 _ , args , _ = call .mock_calls [0 ]
51305130 # Ensure that the uuid4 field is set according to AIP 4235
5131- assert re .match (r"[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}" , args [0 ].request_id )
5131+ assert re .fullmatch (r"[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}" , args [0 ].request_id )
51325132 # clear UUID field so that the check below succeeds
51335133 args [0 ].request_id = None
51345134 request_msg = storage_batch_operations .CreateJobRequest ()
@@ -5155,7 +5155,7 @@ def test_delete_job_empty_call_grpc():
51555155 call .assert_called ()
51565156 _ , args , _ = call .mock_calls [0 ]
51575157 # Ensure that the uuid4 field is set according to AIP 4235
5158- assert re .match (r"[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}" , args [0 ].request_id )
5158+ assert re .fullmatch (r"[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}" , args [0 ].request_id )
51595159 # clear UUID field so that the check below succeeds
51605160 args [0 ].request_id = None
51615161 request_msg = storage_batch_operations .DeleteJobRequest ()
@@ -5182,7 +5182,7 @@ def test_cancel_job_empty_call_grpc():
51825182 call .assert_called ()
51835183 _ , args , _ = call .mock_calls [0 ]
51845184 # Ensure that the uuid4 field is set according to AIP 4235
5185- assert re .match (r"[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}" , args [0 ].request_id )
5185+ assert re .fullmatch (r"[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}" , args [0 ].request_id )
51865186 # clear UUID field so that the check below succeeds
51875187 args [0 ].request_id = None
51885188 request_msg = storage_batch_operations .CancelJobRequest ()
@@ -5333,7 +5333,7 @@ async def test_create_job_empty_call_grpc_asyncio():
53335333 call .assert_called ()
53345334 _ , args , _ = call .mock_calls [0 ]
53355335 # Ensure that the uuid4 field is set according to AIP 4235
5336- assert re .match (r"[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}" , args [0 ].request_id )
5336+ assert re .fullmatch (r"[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}" , args [0 ].request_id )
53375337 # clear UUID field so that the check below succeeds
53385338 args [0 ].request_id = None
53395339 request_msg = storage_batch_operations .CreateJobRequest ()
@@ -5362,7 +5362,7 @@ async def test_delete_job_empty_call_grpc_asyncio():
53625362 call .assert_called ()
53635363 _ , args , _ = call .mock_calls [0 ]
53645364 # Ensure that the uuid4 field is set according to AIP 4235
5365- assert re .match (r"[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}" , args [0 ].request_id )
5365+ assert re .fullmatch (r"[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}" , args [0 ].request_id )
53665366 # clear UUID field so that the check below succeeds
53675367 args [0 ].request_id = None
53685368 request_msg = storage_batch_operations .DeleteJobRequest ()
@@ -5392,7 +5392,7 @@ async def test_cancel_job_empty_call_grpc_asyncio():
53925392 call .assert_called ()
53935393 _ , args , _ = call .mock_calls [0 ]
53945394 # Ensure that the uuid4 field is set according to AIP 4235
5395- assert re .match (r"[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}" , args [0 ].request_id )
5395+ assert re .fullmatch (r"[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}" , args [0 ].request_id )
53965396 # clear UUID field so that the check below succeeds
53975397 args [0 ].request_id = None
53985398 request_msg = storage_batch_operations .CancelJobRequest ()
@@ -6650,7 +6650,7 @@ def test_create_job_empty_call_rest():
66506650 call .assert_called ()
66516651 _ , args , _ = call .mock_calls [0 ]
66526652 # Ensure that the uuid4 field is set according to AIP 4235
6653- assert re .match (r"[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}" , args [0 ].request_id )
6653+ assert re .fullmatch (r"[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}" , args [0 ].request_id )
66546654 # clear UUID field so that the check below succeeds
66556655 args [0 ].request_id = None
66566656 request_msg = storage_batch_operations .CreateJobRequest ()
@@ -6676,7 +6676,7 @@ def test_delete_job_empty_call_rest():
66766676 call .assert_called ()
66776677 _ , args , _ = call .mock_calls [0 ]
66786678 # Ensure that the uuid4 field is set according to AIP 4235
6679- assert re .match (r"[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}" , args [0 ].request_id )
6679+ assert re .fullmatch (r"[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}" , args [0 ].request_id )
66806680 # clear UUID field so that the check below succeeds
66816681 args [0 ].request_id = None
66826682 request_msg = storage_batch_operations .DeleteJobRequest ()
@@ -6702,7 +6702,7 @@ def test_cancel_job_empty_call_rest():
67026702 call .assert_called ()
67036703 _ , args , _ = call .mock_calls [0 ]
67046704 # Ensure that the uuid4 field is set according to AIP 4235
6705- assert re .match (r"[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}" , args [0 ].request_id )
6705+ assert re .fullmatch (r"[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}" , args [0 ].request_id )
67066706 # clear UUID field so that the check below succeeds
67076707 args [0 ].request_id = None
67086708 request_msg = storage_batch_operations .CancelJobRequest ()
0 commit comments