Skip to content

Commit

Permalink
Improve tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
knutnergaard committed Dec 1, 2024
1 parent fba515e commit a9e16b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Lib/fontParts/test/test_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,14 +255,14 @@ def test_iter(self):

def test_iter_remove(self):
groups = self.getGroups_generic()
expected = []

for groupName in groups:
groups.remove(groupName)
self.assertNotIn(groupName, groups)

self.assertEqual(list(groups.keys()), expected)
self.assertFalse(groups)

def test_values(self):
groups = self.getGroups_generic()
expected = [("A", "B", "C"), ("x", "y", "z"), (), ("A",)]
self.assertEqual(list(groups.values()).sort(), expected.sort())
self.assertEqual(sorted(groups.values()), sorted(expected))

0 comments on commit a9e16b3

Please sign in to comment.