Commit 36850456 authored by Brett Cannon's avatar Brett Cannon

Change test_values so that it compares the lowercasing of group names since...

Change test_values so that it compares the lowercasing of group names since getgrall() can return all lowercase names while getgrgid() returns proper casing.

Discovered on Ubuntu 5.04 (custom).
parent f5bc4143
......@@ -31,7 +31,10 @@ class GroupDatabaseTestCase(unittest.TestCase):
self.assertEqual(e2.gr_gid, e.gr_gid)
e2 = grp.getgrnam(e.gr_name)
self.check_value(e2)
self.assertEqual(e2.gr_name, e.gr_name)
# There are instances where getgrall() returns group names in
# lowercase while getgrgid() returns proper casing.
# Discovered on Ubuntu 5.04 (custom).
self.assertEqual(e2.gr_name.lower(), e.gr_name.lower())
def test_errors(self):
self.assertRaises(TypeError, grp.getgrgid)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment