Lines Matching full:pwd
5 pwd = test_support.import_module('pwd') variable
10 entries = pwd.getpwall()
31 # self.assertEqual(pwd.getpwuid(e.pw_uid), e)
36 entries = pwd.getpwall()
52 self.assertIn(pwd.getpwnam(e.pw_name), entriesbyname[e.pw_name])
53 self.assertIn(pwd.getpwuid(e.pw_uid), entriesbyuid[e.pw_uid])
56 self.assertRaises(TypeError, pwd.getpwuid)
57 self.assertRaises(TypeError, pwd.getpwuid, 3.14)
58 self.assertRaises(TypeError, pwd.getpwnam)
59 self.assertRaises(TypeError, pwd.getpwnam, 42)
60 self.assertRaises(TypeError, pwd.getpwall, 42)
65 for (n, p, u, g, gecos, d, s) in pwd.getpwall():
92 self.assertRaises(KeyError, pwd.getpwnam, fakename)
96 # loop, say), pwd.getpwuid() might still be able to find data for that
101 self.assertRaises(KeyError, pwd.getpwuid, fakeuid)
105 self.assertRaises(KeyError, pwd.getpwuid, -1)
107 self.assertRaises(KeyError, pwd.getpwuid, 2**128)
108 self.assertRaises(KeyError, pwd.getpwuid, -2**128)