Lines Matching refs:portable
37 import pkg.portable as portable
62 self.assertRaises(KeyError, portable.get_group_by_name,
66 portable.get_group_by_name("root", self.test_root, True))
68 portable.get_group_by_name("gk", self.test_root, True))
70 self.assertRaises(KeyError, portable.get_name_by_gid,
78 self.assertRaises(KeyError, portable.get_group_by_name,
84 grpname = portable.get_name_by_gid(0, self.test_root, True)
86 portable.get_group_by_name(grpname, self.test_root, True))
108 portable.get_name_by_gid(0, self.test_root, True))
110 portable.get_group_by_name("root", self.test_root, True))
112 portable.get_group_by_name("gk", self.test_root, True))
114 portable.get_group_by_name("tty", self.test_root, True))
116 self.assertRaises(KeyError, portable.get_group_by_name,
119 self.assertRaises(KeyError, portable.get_group_by_name,
122 self.assertRaises(KeyError, portable.get_group_by_name,
144 portable.get_name_by_gid(0, self.test_root, True))
146 portable.get_group_by_name("root", self.test_root, True))
148 portable.get_group_by_name("gk", self.test_root, True))
150 portable.get_group_by_name("tty", self.test_root, True))
152 self.assertRaises(KeyError, portable.get_group_by_name,
173 self.assertRaises(KeyError, portable.get_user_by_name,
177 portable.get_user_by_name("root", self.test_root, True))
179 portable.get_user_by_name("gk", self.test_root, True))
181 portable.get_user_by_name("moop", self.test_root, True))
183 self.assertRaises(KeyError, portable.get_name_by_uid,
192 self.assertRaises(KeyError, portable.get_user_by_name,
198 portable.get_user_by_name("root", self.test_root, True))
200 portable.get_name_by_uid(0, self.test_root, True))
225 portable.get_user_by_name("root", self.test_root, True))
227 portable.get_user_by_name("gk", self.test_root, True))
229 portable.get_name_by_uid(5, self.test_root, True))
231 self.assertRaises(KeyError, portable.get_user_by_name,
234 self.assertRaises(KeyError, portable.get_user_by_name,
237 self.assertRaises(KeyError, portable.get_user_by_name,
260 portable.get_user_by_name("root", self.test_root, True))
262 portable.get_user_by_name("gk", self.test_root, True))
264 portable.get_name_by_uid(0, self.test_root, True))
266 portable.get_name_by_uid(5, self.test_root, True))
268 self.assertRaises(KeyError, portable.get_user_by_name,