@@ -41,6 +41,7 @@ def test_delete_operation(transport: str = "grpc"):
4141
4242 # Establish that the response is the type that we expect.
4343 assert response is None
44+
4445{% endfor %}
4546
4647{% for mode in ["" , "async" ] %}
@@ -85,6 +86,7 @@ def test_delete_operation_field_headers():
8586 # Establish that the field header was sent.
8687 _, _, kw = call.mock_calls[0]
8788 assert ("x-goog-request-params", "name=locations",) in kw["metadata"]
89+
8890{% endfor %}
8991
9092{% for mode in ["" , "async" ] %}
@@ -125,6 +127,7 @@ def test_delete_operation_from_dict():
125127 )
126128 {% endif %}
127129 call.assert_called()
130+
128131{% endfor %}
129132
130133{% for mode in ["" , "async" ] %}
@@ -160,6 +163,7 @@ def test_delete_operation_flattened():
160163 assert len(call.mock_calls) == 1
161164 _, args, _ = call.mock_calls[0]
162165 assert args[0] == operations_pb2.DeleteOperationRequest()
166+
163167{% endfor %}
164168
165169{% endif %} {# DeleteOperation #}
@@ -205,6 +209,7 @@ def test_cancel_operation(transport: str = "grpc"):
205209
206210 # Establish that the response is the type that we expect.
207211 assert response is None
212+
208213{% endfor %}
209214
210215{% for mode in ["" , "async" ] %}
@@ -249,6 +254,7 @@ def test_cancel_operation_field_headers():
249254 # Establish that the field header was sent.
250255 _, _, kw = call.mock_calls[0]
251256 assert ("x-goog-request-params", "name=locations",) in kw["metadata"]
257+
252258{% endfor %}
253259
254260{% for mode in ["" , "async" ] %}
@@ -289,6 +295,7 @@ def test_cancel_operation_from_dict():
289295 )
290296 {% endif %}
291297 call.assert_called()
298+
292299{% endfor %}
293300
294301{% for mode in ["" , "async" ] %}
@@ -324,6 +331,7 @@ def test_cancel_operation_flattened():
324331 assert len(call.mock_calls) == 1
325332 _, args, _ = call.mock_calls[0]
326333 assert args[0] == operations_pb2.CancelOperationRequest()
334+
327335{% endfor %}
328336{% endif %} {# CancelOperation #}
329337
@@ -368,6 +376,7 @@ def test_wait_operation(transport: str = "grpc"):
368376
369377 # Establish that the response is the type that we expect.
370378 assert isinstance(response, operations_pb2.Operation)
379+
371380{% endfor %}
372381
373382{% for mode in ["" , "async" ] %}
@@ -412,6 +421,7 @@ def test_wait_operation_field_headers():
412421 # Establish that the field header was sent.
413422 _, _, kw = call.mock_calls[0]
414423 assert ("x-goog-request-params", "name=locations",) in kw["metadata"]
424+
415425{% endfor %}
416426
417427{% for mode in ["" , "async" ] %}
@@ -452,6 +462,7 @@ def test_wait_operation_from_dict():
452462 )
453463 {% endif %}
454464 call.assert_called()
465+
455466{% endfor %}
456467
457468{% for mode in ["" , "async" ] %}
@@ -487,6 +498,7 @@ def test_wait_operation_flattened():
487498 assert len(call.mock_calls) == 1
488499 _, args, _ = call.mock_calls[0]
489500 assert args[0] == operations_pb2.WaitOperationRequest()
501+
490502{% endfor %}
491503
492504{% endif %} {# WaitOperation #}
@@ -532,6 +544,7 @@ def test_get_operation(transport: str = "grpc"):
532544
533545 # Establish that the response is the type that we expect.
534546 assert isinstance(response, operations_pb2.Operation)
547+
535548{% endfor %}
536549
537550{% for mode in ["" , "async" ] %}
@@ -576,6 +589,7 @@ def test_get_operation_field_headers():
576589 # Establish that the field header was sent.
577590 _, _, kw = call.mock_calls[0]
578591 assert ("x-goog-request-params", "name=locations",) in kw["metadata"]
592+
579593{% endfor %}
580594
581595{% for mode in ["" , "async" ] %}
@@ -616,6 +630,7 @@ def test_get_operation_from_dict():
616630 )
617631 {% endif %}
618632 call.assert_called()
633+
619634{% endfor %}
620635
621636{% for mode in ["" , "async" ] %}
@@ -651,6 +666,7 @@ def test_get_operation_flattened():
651666 assert len(call.mock_calls) == 1
652667 _, args, _ = call.mock_calls[0]
653668 assert args[0] == operations_pb2.GetOperationRequest()
669+
654670{% endfor %}
655671
656672{% endif %} {# GetOperation #}
@@ -696,6 +712,7 @@ def test_list_operations(transport: str = "grpc"):
696712
697713 # Establish that the response is the type that we expect.
698714 assert isinstance(response, operations_pb2.ListOperationsResponse)
715+
699716{% endfor %}
700717
701718{% for mode in ["" , "async" ] %}
@@ -740,6 +757,7 @@ def test_list_operations_field_headers():
740757 # Establish that the field header was sent.
741758 _, _, kw = call.mock_calls[0]
742759 assert ("x-goog-request-params", "name=locations",) in kw["metadata"]
760+
743761{% endfor %}
744762
745763{% for mode in ["" , "async" ] %}
@@ -780,6 +798,7 @@ def test_list_operations_from_dict():
780798 )
781799 {% endif %}
782800 call.assert_called()
801+
783802{% endfor %}
784803
785804{% for mode in ["" , "async" ] %}
@@ -815,6 +834,7 @@ def test_list_operations_flattened():
815834 assert len(call.mock_calls) == 1
816835 _, args, _ = call.mock_calls[0]
817836 assert args[0] == operations_pb2.ListOperationsRequest()
837+
818838{% endfor %}
819839
820840{% endif %} {# ListOperations #}
@@ -866,6 +886,7 @@ def test_list_locations(transport: str = "grpc"):
866886
867887 # Establish that the response is the type that we expect.
868888 assert isinstance(response, locations_pb2.ListLocationsResponse)
889+
869890{% endfor %}
870891
871892{% for mode in ["" , "async" ] %}
@@ -910,6 +931,7 @@ def test_list_locations_field_headers():
910931 # Establish that the field header was sent.
911932 _, _, kw = call.mock_calls[0]
912933 assert ("x-goog-request-params", "name=locations",) in kw["metadata"]
934+
913935{% endfor %}
914936
915937{% for mode in ["" , "async" ] %}
@@ -950,6 +972,7 @@ def test_list_locations_from_dict():
950972 )
951973 {% endif %}
952974 call.assert_called()
975+
953976{% endfor %}
954977
955978{% for mode in ["" , "async" ] %}
@@ -985,6 +1008,7 @@ def test_list_locations_flattened():
9851008 assert len(call.mock_calls) == 1
9861009 _, args, _ = call.mock_calls[0]
9871010 assert args[0] == locations_pb2.ListLocationsRequest()
1011+
9881012{% endfor %}
9891013
9901014{% endif %} {# ListLocations #}
@@ -1032,6 +1056,7 @@ def test_get_location(transport: str = "grpc"):
10321056
10331057 # Establish that the response is the type that we expect.
10341058 assert isinstance(response, locations_pb2.Location)
1059+
10351060{% endfor %}
10361061
10371062{% for mode in ["" , "async" ] %}
@@ -1075,6 +1100,7 @@ def test_get_location_field_headers():
10751100 # Establish that the field header was sent.
10761101 _, _, kw = call.mock_calls[0]
10771102 assert ("x-goog-request-params", "name=locations/abc",) in kw["metadata"]
1103+
10781104{% endfor %}
10791105
10801106{% for mode in ["" , "async" ] %}
@@ -1115,6 +1141,7 @@ def test_get_location_from_dict():
11151141 )
11161142 {% endif %}
11171143 call.assert_called()
1144+
11181145{% endfor %}
11191146
11201147{% for mode in ["" , "async" ] %}
@@ -1150,6 +1177,7 @@ def test_get_location_flattened():
11501177 assert len(call.mock_calls) == 1
11511178 _, args, _ = call.mock_calls[0]
11521179 assert args[0] == locations_pb2.GetLocationRequest()
1180+
11531181{% endfor %}
11541182
11551183{% endif %} {# GetLocation #}
@@ -1204,6 +1232,7 @@ def test_set_iam_policy(transport: str = "grpc"):
12041232 assert response.version == 774
12051233
12061234 assert response.etag == b"etag_blob"
1235+
12071236{% endfor %}
12081237
12091238{% for mode in ["" , "async" ] %}
@@ -1248,6 +1277,7 @@ def test_set_iam_policy_field_headers():
12481277 # Establish that the field header was sent.
12491278 _, _, kw = call.mock_calls[0]
12501279 assert ("x-goog-request-params", "resource=resource/value",) in kw["metadata"]
1280+
12511281{% endfor %}
12521282
12531283def test_set_iam_policy_from_dict():
@@ -1774,6 +1804,7 @@ def test_set_iam_policy(transport: str = "grpc"):
17741804 assert response.version == 774
17751805
17761806 assert response.etag == b"etag_blob"
1807+
17771808{% endfor %}
17781809
17791810{% for mode in ["" , "async" ] %}
@@ -1818,6 +1849,7 @@ def test_set_iam_policy_field_headers():
18181849 # Establish that the field header was sent.
18191850 _, _, kw = call.mock_calls[0]
18201851 assert ("x-goog-request-params", "resource=resource/value",) in kw["metadata"]
1852+
18211853{% endfor %}
18221854
18231855def test_set_iam_policy_from_dict():
0 commit comments