Skip to content

Commit

Permalink
[#86] Modify all usages of assertEquals to assertEqual
Browse files Browse the repository at this point in the history
  • Loading branch information
FifthPotato authored and alanking committed Aug 20, 2024
1 parent 97ebc74 commit 8e9eefd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packaging/test_rule_engine_plugin_metadata_guard.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ def test_unauthorized_users_cannot_manipulate_metadata_in_guarded_namespace(self

def check_metadata():
out, err, ec = self.admin.run_icommand(['imeta', 'ls', '-C', coll])
self.assertEquals(ec, 0)
self.assertEquals(len(err), 0)
self.assertEqual(ec, 0)
self.assertEqual(len(err), 0)
self.assertTrue('attribute: {0}\nvalue: {1}'.format(attribute_name, 'abc') in out)
self.assertTrue('attribute: {0}\nvalue: {1}'.format(attribute_name, 'def') in out)
self.assertTrue('attribute: {0}\nvalue: {1}'.format(attribute_name, 'DEF') not in out)
Expand Down Expand Up @@ -162,9 +162,9 @@ def test_plugin_does_not_throw_exception_when_json_config_has_not_been_set_as_me
self.admin.assert_icommand(['imeta', 'set', '-C', self.admin.session_collection, 'a', 'v'])
self.admin.assert_icommand(['imeta', 'ls', '-C', self.admin.session_collection], 'STDOUT', ['attribute: a', 'value: v'])

self.assertEquals(lib.count_occurrences_of_string_in_log(paths.server_log_path(), 'error', log_offset), 0)
self.assertEquals(lib.count_occurrences_of_string_in_log(paths.server_log_path(), 'exception', log_offset), 0)
self.assertEquals(lib.count_occurrences_of_string_in_log(paths.server_log_path(), 'SYS_CONFIG_FILE_ERR', log_offset), 0)
self.assertEqual(lib.count_occurrences_of_string_in_log(paths.server_log_path(), 'error', log_offset), 0)
self.assertEqual(lib.count_occurrences_of_string_in_log(paths.server_log_path(), 'exception', log_offset), 0)
self.assertEqual(lib.count_occurrences_of_string_in_log(paths.server_log_path(), 'SYS_CONFIG_FILE_ERR', log_offset), 0)

def test_plugin_honors_admin_only_config_option_when_rodsadmins_manipulate_metadata__issue_25(self):
config = IrodsConfig()
Expand Down

0 comments on commit 8e9eefd

Please sign in to comment.