From 4897615a1ea411a2cb1a4deb419f2afe502899c8 Mon Sep 17 00:00:00 2001 From: Chen Hanxiao Date: Sat, 21 Oct 2017 12:36:44 +0800 Subject: [PATCH] pylint: Replace deprecated assertEquals with assertEqual pylint complain: Using deprecated method assertEquals() (deprecated-method) https://docs.python.org/3.3/library/unittest.html#deprecated-aliases Method Name Deprecated alias Deprecated alias assertEqual() failUnlessEqual assertEquals Signed-off-by: Chen Hanxiao --- tests/hostkeymap.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/hostkeymap.py b/tests/hostkeymap.py index ce5d0f64..8fd79f76 100644 --- a/tests/hostkeymap.py +++ b/tests/hostkeymap.py @@ -32,23 +32,23 @@ class TestHostkeymap(unittest.TestCase): return open(os.path.join(os.getcwd(), "tests/hostkeymap", filename)) - self.assertEquals( + self.assertEqual( hostkeymap._sysconfig_keyboard( _open("sysconfig-comments.txt")), "") - self.assertEquals( + self.assertEqual( hostkeymap._sysconfig_keyboard( _open("sysconfig-rhel5.txt")), "us") - self.assertEquals( + self.assertEqual( hostkeymap._find_xkblayout( _open("default-keyboard-debian9.txt")), "us") - self.assertEquals( + self.assertEqual( hostkeymap._find_xkblayout( _open("console-setup-debian9.txt")), None) - self.assertEquals( + self.assertEqual( hostkeymap._xorg_keymap( _open("xorg-rhel5.txt")), "us")