Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{Misc.} Remove deprecated assertEquals #29515

Merged
merged 1 commit into from
Jul 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ def test_acr_identity(self, resource_group):
self.assertTrue('systemAssigned' in result['type'])
self.assertTrue('userAssigned' in result['type'])
self.assertTrue(len(result['userAssignedIdentities']) == 1)
self.assertEquals(list(result['userAssignedIdentities'].keys())[0].lower(), self.kwargs['identity_id'].lower())
self.assertEqual(list(result['userAssignedIdentities'].keys())[0].lower(), self.kwargs['identity_id'].lower())

# remove identities
import time
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def test_live_event_standby(self, storage_account_for_create):

self.assertNotEqual('Stopping', live_event['resourceState'])
self.assertNotEqual('Stopped', live_event['resourceState'])
self.assertEquals('StandBy', live_event['resourceState'])
self.assertEqual('StandBy', live_event['resourceState'])

@ResourceGroupPreparer()
@StorageAccountPreparer(parameter_name='storage_account_for_create')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1097,15 +1097,15 @@ def test_appconfig_to_appservice_import_export(self, resource_group, location):
# Assert first reference is in the right format
app_settings = self.cmd('webapp config appsettings list -g {rg} -n {appservice_account}').get_output_in_json()
exported_keys = next(x for x in app_settings if x['name'] == entry_key)
self.assertEquals(exported_keys['name'], entry_key)
self.assertEquals(exported_keys['value'], expected_reference)
self.assertEquals(exported_keys['slotSetting'], False)
self.assertEqual(exported_keys['name'], entry_key)
self.assertEqual(exported_keys['value'], expected_reference)
self.assertEqual(exported_keys['slotSetting'], False)

# Assert second reference is of right format
exported_keys = next(x for x in app_settings if x['name'] == entry_key2)
self.assertEquals(exported_keys['name'], entry_key2)
self.assertEquals(exported_keys['value'], expected_reference2)
self.assertEquals(exported_keys['slotSetting'], False)
self.assertEqual(exported_keys['name'], entry_key2)
self.assertEqual(exported_keys['value'], expected_reference2)
self.assertEqual(exported_keys['slotSetting'], False)


# Test to confirm the right app configuration reference
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ def test_vm_availset(self, resource_group):
self.check('[0].name', '{availset}')
])
result = self.cmd('vm availability-set list --query "[?name==\'availset-test\']"').get_output_in_json()
self.assertEquals(1, len(result))
self.assertEqual(1, len(result))
self.cmd('vm availability-set list-sizes -g {rg} -n {availset}',
checks=self.check('type(@)', 'array'))
self.cmd('vm availability-set show -g {rg} -n {availset}',
Expand Down