@@ -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 (
@@ -4135,7 +4135,7 @@ def test_create_job_rest_required_fields(request_type=storage_batch_operations.C
41354135 # Ensure that the uuid4 field is set according to AIP 4235
41364136 for i , (key , value ) in enumerate (req .call_args .kwargs ['params' ]):
41374137 if key == "requestId" :
4138- 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 )
4138+ 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 )
41394139 break
41404140
41414141 # Include requestId within expected_params with value mock.ANY
@@ -4313,7 +4313,7 @@ def test_delete_job_rest_required_fields(request_type=storage_batch_operations.D
43134313 # Ensure that the uuid4 field is set according to AIP 4235
43144314 for i , (key , value ) in enumerate (req .call_args .kwargs ['params' ]):
43154315 if key == "requestId" :
4316- 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 )
4316+ 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 )
43174317 break
43184318
43194319 # Include requestId within expected_params with value mock.ANY
@@ -4489,7 +4489,7 @@ def test_cancel_job_rest_required_fields(request_type=storage_batch_operations.C
44894489 # Ensure that the uuid4 field is set according to AIP 4235
44904490 for i , (key , value ) in enumerate (req .call_args .kwargs ['params' ]):
44914491 if key == "requestId" :
4492- 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 )
4492+ 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 )
44934493 break
44944494
44954495 # Include requestId within expected_params with value mock.ANY
@@ -5125,7 +5125,7 @@ def test_create_job_empty_call_grpc():
51255125 call .assert_called ()
51265126 _ , args , _ = call .mock_calls [0 ]
51275127 # Ensure that the uuid4 field is set according to AIP 4235
5128- 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 )
5128+ 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 )
51295129 # clear UUID field so that the check below succeeds
51305130 args [0 ].request_id = None
51315131 request_msg = storage_batch_operations .CreateJobRequest ()
@@ -5152,7 +5152,7 @@ def test_delete_job_empty_call_grpc():
51525152 call .assert_called ()
51535153 _ , args , _ = call .mock_calls [0 ]
51545154 # Ensure that the uuid4 field is set according to AIP 4235
5155- 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 )
5155+ 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 )
51565156 # clear UUID field so that the check below succeeds
51575157 args [0 ].request_id = None
51585158 request_msg = storage_batch_operations .DeleteJobRequest ()
@@ -5179,7 +5179,7 @@ def test_cancel_job_empty_call_grpc():
51795179 call .assert_called ()
51805180 _ , args , _ = call .mock_calls [0 ]
51815181 # Ensure that the uuid4 field is set according to AIP 4235
5182- 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 )
5182+ 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 )
51835183 # clear UUID field so that the check below succeeds
51845184 args [0 ].request_id = None
51855185 request_msg = storage_batch_operations .CancelJobRequest ()
@@ -5330,7 +5330,7 @@ async def test_create_job_empty_call_grpc_asyncio():
53305330 call .assert_called ()
53315331 _ , args , _ = call .mock_calls [0 ]
53325332 # Ensure that the uuid4 field is set according to AIP 4235
5333- 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 )
5333+ 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 )
53345334 # clear UUID field so that the check below succeeds
53355335 args [0 ].request_id = None
53365336 request_msg = storage_batch_operations .CreateJobRequest ()
@@ -5359,7 +5359,7 @@ async def test_delete_job_empty_call_grpc_asyncio():
53595359 call .assert_called ()
53605360 _ , args , _ = call .mock_calls [0 ]
53615361 # Ensure that the uuid4 field is set according to AIP 4235
5362- 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 )
5362+ 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 )
53635363 # clear UUID field so that the check below succeeds
53645364 args [0 ].request_id = None
53655365 request_msg = storage_batch_operations .DeleteJobRequest ()
@@ -5389,7 +5389,7 @@ async def test_cancel_job_empty_call_grpc_asyncio():
53895389 call .assert_called ()
53905390 _ , args , _ = call .mock_calls [0 ]
53915391 # Ensure that the uuid4 field is set according to AIP 4235
5392- 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 )
5392+ 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 )
53935393 # clear UUID field so that the check below succeeds
53945394 args [0 ].request_id = None
53955395 request_msg = storage_batch_operations .CancelJobRequest ()
@@ -6647,7 +6647,7 @@ def test_create_job_empty_call_rest():
66476647 call .assert_called ()
66486648 _ , args , _ = call .mock_calls [0 ]
66496649 # Ensure that the uuid4 field is set according to AIP 4235
6650- 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 )
6650+ 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 )
66516651 # clear UUID field so that the check below succeeds
66526652 args [0 ].request_id = None
66536653 request_msg = storage_batch_operations .CreateJobRequest ()
@@ -6673,7 +6673,7 @@ def test_delete_job_empty_call_rest():
66736673 call .assert_called ()
66746674 _ , args , _ = call .mock_calls [0 ]
66756675 # Ensure that the uuid4 field is set according to AIP 4235
6676- 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 )
6676+ 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 )
66776677 # clear UUID field so that the check below succeeds
66786678 args [0 ].request_id = None
66796679 request_msg = storage_batch_operations .DeleteJobRequest ()
@@ -6699,7 +6699,7 @@ def test_cancel_job_empty_call_rest():
66996699 call .assert_called ()
67006700 _ , args , _ = call .mock_calls [0 ]
67016701 # Ensure that the uuid4 field is set according to AIP 4235
6702- 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 )
6702+ 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 )
67036703 # clear UUID field so that the check below succeeds
67046704 args [0 ].request_id = None
67056705 request_msg = storage_batch_operations .CancelJobRequest ()
0 commit comments