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 <chenhanxiao@gmail.com>
This commit is contained in:
parent
10246e0caa
commit
4897615a1e
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue