assertEquals is deprecated, use assertEqual

Use assertEqual instead. ref:https://github.com/
openstack-dev/hacking/blob/master/hacking/checks/python23.py#L106

Change-Id: I4ebb0b236be7d24bdbbe0211f34c9b409fc14e26
Partial-Implements: blueprint porting-python3
This commit is contained in:
Bo Wang 2016-01-27 00:59:19 +08:00
parent 83c9e3fead
commit 835fd34ccd

View File

@ -55,9 +55,9 @@ class PanelPluginTests(test.PluginTestCase):
[p.__class__ for p in panel_group])
# Ensure that static resources are properly injected
pc = panel_config._10_admin_add_panel
self.assertEquals(pc.ADD_JS_FILES, HORIZON_CONFIG['js_files'])
self.assertEquals(pc.ADD_JS_SPEC_FILES, HORIZON_CONFIG['js_spec_files'])
self.assertEquals(pc.ADD_SCSS_FILES, HORIZON_CONFIG['scss_files'])
self.assertEqual(pc.ADD_JS_FILES, HORIZON_CONFIG['js_files'])
self.assertEqual(pc.ADD_JS_SPEC_FILES, HORIZON_CONFIG['js_spec_files'])
self.assertEqual(pc.ADD_SCSS_FILES, HORIZON_CONFIG['scss_files'])
def test_remove_panel(self):
dashboard = horizon.get_dashboard("admin")