Skip to content

Commit 32078a8

Browse files
unit tests: Fix spell check for the unit tests
Signed-off-by: Bernhard Kaindl <[email protected]>
1 parent 7a1ed1b commit 32078a8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tests/test_ifrename_logic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ def tearDown(self):
558558
self.siobuff.close()
559559

560560

561-
def test_srule_eth_unaliased(self):
561+
def test_srule_eth_not_aliased(self):
562562
rename([self.s111], [], [], [])
563563

564564
def test_srule_eth_alias(self):

tests/test_ifrename_static.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def test_single_ppn_slot(self):
136136
self.assertEqual(sr.formulae, {"eth0": ("ppn", "p2p3")})
137137
self.assertEqual(sr.rules, [])
138138

139-
def test_single_oldsytle_ppn_slot(self):
139+
def test_single_old_style_ppn_slot(self):
140140
# CA-82901 - Accept old-style PPNs but translate them to new-style
141141
fd = StringIO('eth0:ppn="pci2p3"')
142142
sr = StaticRules(fd = fd)
@@ -455,7 +455,7 @@ def test_one_valid(self):
455455
def test_one_invalid_method(self):
456456

457457
sr = StaticRules()
458-
sr.formulae = {"eth0": ("ppf", "foobaz"),
458+
sr.formulae = {"eth0": ("ppf", "foobar"),
459459
}
460460

461461
self.assertEqual(sr.write(False), "")

tests/test_mac.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def test_unequal(self):
218218
self.assertFalse(m1 > m2)
219219
self.assertFalse(m1 >= m2)
220220

221-
class TestHashability(unittest.TestCase):
221+
class TestHashing(unittest.TestCase):
222222

223223
def test_keys(self):
224224

0 commit comments

Comments
 (0)