Skip to content

Commit

Permalink
unit tests: Fix spell check for the unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: Bernhard Kaindl <[email protected]>
  • Loading branch information
bernhardkaindl committed Nov 16, 2024
1 parent 7a1ed1b commit 32078a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/test_ifrename_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
4 changes: 2 additions & 2 deletions tests/test_ifrename_static.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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), "")
Expand Down
2 changes: 1 addition & 1 deletion tests/test_mac.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):

Expand Down

0 comments on commit 32078a8

Please sign in to comment.