@@ -123,16 +123,16 @@ def test_without_arg_overwrites_without_kwarg_collisions_with_config(
123123
124124 mock_retrieve_model_init_kwargs .return_value = {}
125125
126- self .assertEquals (mock_get_sagemaker_config_value .call_count , 1 )
127- self .assertEquals (mock_estimator_init .call_args [1 ].get ("role" ), config_role )
126+ self .assertEqual (mock_get_sagemaker_config_value .call_count , 1 )
127+ self .assertEqual (mock_estimator_init .call_args [1 ].get ("role" ), config_role )
128128 assert "enable_network_isolation" not in mock_estimator_init .call_args [1 ]
129129 assert "encrypt_inter_container_traffic" not in mock_estimator_init .call_args [1 ]
130130
131131 estimator .deploy ()
132132
133- self .assertEquals (mock_get_sagemaker_config_value .call_count , 3 )
133+ self .assertEqual (mock_get_sagemaker_config_value .call_count , 3 )
134134
135- self .assertEquals (mock_estimator_deploy .call_args [1 ].get ("role" ), config_inference_role )
135+ self .assertEqual (mock_estimator_deploy .call_args [1 ].get ("role" ), config_inference_role )
136136
137137 assert "enable_network_isolation" not in mock_estimator_deploy .call_args [1 ]
138138
@@ -181,13 +181,13 @@ def test_without_arg_overwrites_with_kwarg_collisions_with_config(
181181 model_id = model_id ,
182182 )
183183
184- self .assertEquals (mock_get_sagemaker_config_value .call_count , 3 )
185- self .assertEquals (mock_estimator_init .call_args [1 ].get ("role" ), config_role )
186- self .assertEquals (
184+ self .assertEqual (mock_get_sagemaker_config_value .call_count , 3 )
185+ self .assertEqual (mock_estimator_init .call_args [1 ].get ("role" ), config_role )
186+ self .assertEqual (
187187 mock_estimator_init .call_args [1 ].get ("enable_network_isolation" ),
188188 config_enable_network_isolation ,
189189 )
190- self .assertEquals (
190+ self .assertEqual (
191191 mock_estimator_init .call_args [1 ].get ("encrypt_inter_container_traffic" ),
192192 config_intercontainer_encryption ,
193193 )
@@ -200,11 +200,11 @@ def test_without_arg_overwrites_with_kwarg_collisions_with_config(
200200
201201 estimator .deploy ()
202202
203- self .assertEquals (mock_get_sagemaker_config_value .call_count , 6 )
203+ self .assertEqual (mock_get_sagemaker_config_value .call_count , 6 )
204204
205- self .assertEquals (mock_estimator_deploy .call_args [1 ].get ("role" ), config_inference_role )
205+ self .assertEqual (mock_estimator_deploy .call_args [1 ].get ("role" ), config_inference_role )
206206
207- self .assertEquals (
207+ self .assertEqual (
208208 mock_estimator_deploy .call_args [1 ].get ("enable_network_isolation" ),
209209 config_inference_enable_network_isolation ,
210210 )
@@ -257,13 +257,13 @@ def test_with_arg_overwrites_with_kwarg_collisions_with_config(
257257 encrypt_inter_container_traffic = override_encrypt_inter_container_traffic ,
258258 )
259259
260- self .assertEquals (mock_get_sagemaker_config_value .call_count , 1 )
261- self .assertEquals (mock_estimator_init .call_args [1 ].get ("role" ), override_role )
262- self .assertEquals (
260+ self .assertEqual (mock_get_sagemaker_config_value .call_count , 1 )
261+ self .assertEqual (mock_estimator_init .call_args [1 ].get ("role" ), override_role )
262+ self .assertEqual (
263263 mock_estimator_init .call_args [1 ].get ("enable_network_isolation" ),
264264 override_enable_network_isolation ,
265265 )
266- self .assertEquals (
266+ self .assertEqual (
267267 mock_estimator_init .call_args [1 ].get ("encrypt_inter_container_traffic" ),
268268 override_encrypt_inter_container_traffic ,
269269 )
@@ -280,13 +280,13 @@ def test_with_arg_overwrites_with_kwarg_collisions_with_config(
280280 enable_network_isolation = override_inference_enable_network_isolation ,
281281 )
282282
283- self .assertEquals (mock_get_sagemaker_config_value .call_count , 3 )
283+ self .assertEqual (mock_get_sagemaker_config_value .call_count , 3 )
284284
285- self .assertEquals (
285+ self .assertEqual (
286286 mock_estimator_deploy .call_args [1 ].get ("role" ), mock_inference_override_role
287287 )
288288
289- self .assertEquals (
289+ self .assertEqual (
290290 mock_estimator_deploy .call_args [1 ].get ("enable_network_isolation" ),
291291 override_inference_enable_network_isolation ,
292292 )
@@ -336,13 +336,13 @@ def test_with_arg_overwrites_without_kwarg_collisions_with_config(
336336 encrypt_inter_container_traffic = override_encrypt_inter_container_traffic ,
337337 )
338338
339- self .assertEquals (mock_get_sagemaker_config_value .call_count , 1 )
340- self .assertEquals (mock_estimator_init .call_args [1 ].get ("role" ), override_role )
341- self .assertEquals (
339+ self .assertEqual (mock_get_sagemaker_config_value .call_count , 1 )
340+ self .assertEqual (mock_estimator_init .call_args [1 ].get ("role" ), override_role )
341+ self .assertEqual (
342342 mock_estimator_init .call_args [1 ].get ("enable_network_isolation" ),
343343 override_enable_network_isolation ,
344344 )
345- self .assertEquals (
345+ self .assertEqual (
346346 mock_estimator_init .call_args [1 ].get ("encrypt_inter_container_traffic" ),
347347 override_encrypt_inter_container_traffic ,
348348 )
@@ -355,13 +355,13 @@ def test_with_arg_overwrites_without_kwarg_collisions_with_config(
355355 enable_network_isolation = override_inference_enable_network_isolation ,
356356 )
357357
358- self .assertEquals (mock_get_sagemaker_config_value .call_count , 3 )
358+ self .assertEqual (mock_get_sagemaker_config_value .call_count , 3 )
359359
360- self .assertEquals (
360+ self .assertEqual (
361361 mock_estimator_deploy .call_args [1 ].get ("role" ), mock_inference_override_role
362362 )
363363
364- self .assertEquals (
364+ self .assertEqual (
365365 mock_estimator_deploy .call_args [1 ].get ("enable_network_isolation" ),
366366 override_inference_enable_network_isolation ,
367367 )
@@ -412,18 +412,18 @@ def test_without_arg_overwrites_without_kwarg_collisions_without_config(
412412 model_id = model_id ,
413413 )
414414
415- self .assertEquals (mock_get_sagemaker_config_value .call_count , 1 )
416- self .assertEquals (mock_estimator_init .call_args [1 ].get ("role" ), execution_role )
415+ self .assertEqual (mock_get_sagemaker_config_value .call_count , 1 )
416+ self .assertEqual (mock_estimator_init .call_args [1 ].get ("role" ), execution_role )
417417 assert "enable_network_isolation" not in mock_estimator_init .call_args [1 ]
418418 assert "encrypt_inter_container_traffic" not in mock_estimator_init .call_args [1 ]
419419
420420 estimator .deploy ()
421421
422422 mock_retrieve_model_init_kwargs .return_value = {}
423423
424- self .assertEquals (mock_get_sagemaker_config_value .call_count , 3 )
424+ self .assertEqual (mock_get_sagemaker_config_value .call_count , 3 )
425425
426- self .assertEquals (mock_estimator_deploy .call_args [1 ].get ("role" ), execution_role )
426+ self .assertEqual (mock_estimator_deploy .call_args [1 ].get ("role" ), execution_role )
427427
428428 assert "enable_network_isolation" not in mock_estimator_deploy .call_args [1 ]
429429
@@ -475,13 +475,13 @@ def test_without_arg_overwrites_with_kwarg_collisions_without_config(
475475 model_id = model_id ,
476476 )
477477
478- self .assertEquals (mock_get_sagemaker_config_value .call_count , 3 )
479- self .assertEquals (mock_estimator_init .call_args [1 ].get ("role" ), execution_role )
480- self .assertEquals (
478+ self .assertEqual (mock_get_sagemaker_config_value .call_count , 3 )
479+ self .assertEqual (mock_estimator_init .call_args [1 ].get ("role" ), execution_role )
480+ self .assertEqual (
481481 mock_estimator_init .call_args [1 ].get ("enable_network_isolation" ),
482482 metadata_enable_network_isolation ,
483483 )
484- self .assertEquals (
484+ self .assertEqual (
485485 mock_estimator_init .call_args [1 ].get ("encrypt_inter_container_traffic" ),
486486 metadata_intercontainer_encryption ,
487487 )
@@ -492,11 +492,11 @@ def test_without_arg_overwrites_with_kwarg_collisions_without_config(
492492
493493 estimator .deploy ()
494494
495- self .assertEquals (mock_get_sagemaker_config_value .call_count , 6 )
495+ self .assertEqual (mock_get_sagemaker_config_value .call_count , 6 )
496496
497- self .assertEquals (mock_estimator_deploy .call_args [1 ].get ("role" ), execution_role )
497+ self .assertEqual (mock_estimator_deploy .call_args [1 ].get ("role" ), execution_role )
498498
499- self .assertEquals (
499+ self .assertEqual (
500500 mock_estimator_deploy .call_args [1 ].get ("enable_network_isolation" ),
501501 metadata_inference_enable_network_isolation ,
502502 )
@@ -548,13 +548,13 @@ def test_with_arg_overwrites_with_kwarg_collisions_without_config(
548548 encrypt_inter_container_traffic = override_encrypt_inter_container_traffic ,
549549 )
550550
551- self .assertEquals (mock_get_sagemaker_config_value .call_count , 1 )
552- self .assertEquals (mock_estimator_init .call_args [1 ].get ("role" ), override_role )
553- self .assertEquals (
551+ self .assertEqual (mock_get_sagemaker_config_value .call_count , 1 )
552+ self .assertEqual (mock_estimator_init .call_args [1 ].get ("role" ), override_role )
553+ self .assertEqual (
554554 mock_estimator_init .call_args [1 ].get ("enable_network_isolation" ),
555555 override_enable_network_isolation ,
556556 )
557- self .assertEquals (
557+ self .assertEqual (
558558 mock_estimator_init .call_args [1 ].get ("encrypt_inter_container_traffic" ),
559559 override_encrypt_inter_container_traffic ,
560560 )
@@ -568,11 +568,11 @@ def test_with_arg_overwrites_with_kwarg_collisions_without_config(
568568 enable_network_isolation = override_inference_enable_network_isolation ,
569569 )
570570
571- self .assertEquals (mock_get_sagemaker_config_value .call_count , 3 )
571+ self .assertEqual (mock_get_sagemaker_config_value .call_count , 3 )
572572
573- self .assertEquals (mock_estimator_deploy .call_args [1 ].get ("role" ), override_inference_role )
573+ self .assertEqual (mock_estimator_deploy .call_args [1 ].get ("role" ), override_inference_role )
574574
575- self .assertEquals (
575+ self .assertEqual (
576576 mock_estimator_deploy .call_args [1 ].get ("enable_network_isolation" ),
577577 override_inference_enable_network_isolation ,
578578 )
@@ -618,13 +618,13 @@ def test_with_arg_overwrites_without_kwarg_collisions_without_config(
618618 enable_network_isolation = override_enable_network_isolation ,
619619 encrypt_inter_container_traffic = override_encrypt_inter_container_traffic ,
620620 )
621- self .assertEquals (mock_get_sagemaker_config_value .call_count , 1 )
622- self .assertEquals (mock_estimator_init .call_args [1 ].get ("role" ), override_role )
623- self .assertEquals (
621+ self .assertEqual (mock_get_sagemaker_config_value .call_count , 1 )
622+ self .assertEqual (mock_estimator_init .call_args [1 ].get ("role" ), override_role )
623+ self .assertEqual (
624624 mock_estimator_init .call_args [1 ].get ("enable_network_isolation" ),
625625 override_enable_network_isolation ,
626626 )
627- self .assertEquals (
627+ self .assertEqual (
628628 mock_estimator_init .call_args [1 ].get ("encrypt_inter_container_traffic" ),
629629 override_encrypt_inter_container_traffic ,
630630 )
@@ -634,11 +634,11 @@ def test_with_arg_overwrites_without_kwarg_collisions_without_config(
634634 enable_network_isolation = override_enable_network_isolation ,
635635 )
636636
637- self .assertEquals (mock_get_sagemaker_config_value .call_count , 3 )
637+ self .assertEqual (mock_get_sagemaker_config_value .call_count , 3 )
638638
639- self .assertEquals (mock_estimator_deploy .call_args [1 ].get ("role" ), override_inference_role )
639+ self .assertEqual (mock_estimator_deploy .call_args [1 ].get ("role" ), override_inference_role )
640640
641- self .assertEquals (
641+ self .assertEqual (
642642 mock_estimator_deploy .call_args [1 ].get ("enable_network_isolation" ),
643643 override_enable_network_isolation ,
644644 )
0 commit comments