From 32078a8d6a3adc91b45309b222a9afbc78bc87fb Mon Sep 17 00:00:00 2001 From: Bernhard Kaindl Date: Fri, 15 Nov 2024 12:00:00 +0100 Subject: [PATCH] unit tests: Fix spell check for the unit tests Signed-off-by: Bernhard Kaindl --- tests/test_ifrename_logic.py | 2 +- tests/test_ifrename_static.py | 4 ++-- tests/test_mac.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_ifrename_logic.py b/tests/test_ifrename_logic.py index 29221e2d..6e38dcd0 100644 --- a/tests/test_ifrename_logic.py +++ b/tests/test_ifrename_logic.py @@ -558,7 +558,7 @@ def tearDown(self): self.siobuff.close() - def test_srule_eth_unaliased(self): + def test_srule_eth_not_aliased(self): rename([self.s111], [], [], []) def test_srule_eth_alias(self): diff --git a/tests/test_ifrename_static.py b/tests/test_ifrename_static.py index 3471c796..d6a6c33a 100644 --- a/tests/test_ifrename_static.py +++ b/tests/test_ifrename_static.py @@ -136,7 +136,7 @@ def test_single_ppn_slot(self): self.assertEqual(sr.formulae, {"eth0": ("ppn", "p2p3")}) self.assertEqual(sr.rules, []) - def test_single_oldsytle_ppn_slot(self): + def test_single_old_style_ppn_slot(self): # CA-82901 - Accept old-style PPNs but translate them to new-style fd = StringIO('eth0:ppn="pci2p3"') sr = StaticRules(fd = fd) @@ -455,7 +455,7 @@ def test_one_valid(self): def test_one_invalid_method(self): sr = StaticRules() - sr.formulae = {"eth0": ("ppf", "foobaz"), + sr.formulae = {"eth0": ("ppf", "foobar"), } self.assertEqual(sr.write(False), "") diff --git a/tests/test_mac.py b/tests/test_mac.py index f76f25ed..1524db3f 100644 --- a/tests/test_mac.py +++ b/tests/test_mac.py @@ -218,7 +218,7 @@ def test_unequal(self): self.assertFalse(m1 > m2) self.assertFalse(m1 >= m2) -class TestHashability(unittest.TestCase): +class TestHashing(unittest.TestCase): def test_keys(self):