Lines Matching refs:dict

300     return dict((u["name"], u) for u in entries)
306 dict(name='usr\\001', passwd='*', uid=181818, gid=181818,
312 dict(name='user1', passwd='*', uid=1001, gid=2001, gecos='1001',
314 dict(name='user2', passwd='*', uid=1002, gid=2002, gecos='1002',
316 dict(name='user3', passwd='*', uid=1003, gid=2003, gecos='1003',
322 dict(name='group1', passwd='*', gid=2001, mem=ent.contains_only()),
323 dict(name='group2', passwd='*', gid=2002, mem=ent.contains_only()),
324 dict(name='group3', passwd='*', gid=2003, mem=ent.contains_only()),
325 dict(name='empty_group', passwd='*', gid=2010,
327 dict(name='two_user_group', passwd='*', gid=2012,
344 dict(name='user1', passwd='*', uid=1001, gid=2001, gecos='1001',
346 dict(name='user2', passwd='*', uid=1002, gid=2002, gecos='1002',
348 dict(name='user3', passwd='*', uid=1003, gid=2003, gecos='1003',
354 dict(name='group1', passwd='*', gid=2001, mem=ent.contains_only()),
355 dict(name='group2', passwd='*', gid=2002, mem=ent.contains_only()),
356 dict(name='group3', passwd='*', gid=2003, mem=ent.contains_only()),
357 dict(name='empty_group1', passwd='*', gid=2010,
359 dict(name='empty_group2', passwd='*', gid=2011,
361 dict(name='two_user_group', passwd='*', gid=2012,
363 dict(name='group_empty_group', passwd='*', gid=2013,
365 dict(name='group_two_empty_groups', passwd='*', gid=2014,
367 dict(name='one_user_group1', passwd='*', gid=2015,
369 dict(name='one_user_group2', passwd='*', gid=2016,
371 dict(name='group_one_user_group', passwd='*', gid=2017,
373 dict(name='group_two_user_group', passwd='*', gid=2018,
375 dict(name='group_two_one_user_groups', passwd='*', gid=2019,
420 dict(mem=ent.contains_only("user1")))
424 dict(name='user1', passwd='*', uid=1001, gid=2001,
431 dict(mem=ent.contains_only("user1")))
507 dict(mem=ent.contains_only("user1", "user2")))
533 dict(name="user_with_homedir_A", uid=1001, dir="/home/B"),
534 dict(name="user_with_homedir_B", uid=1002, dir="/home/B"),
535 dict(name="user_with_empty_homedir", uid=1003, dir="/home/B")
564 dict(name="user_with_homedir_A", uid=1001, dir="/home/A"),
565 dict(name="user_with_homedir_B", uid=1002, dir="/home/B"),
566 dict(name="user_with_empty_homedir", uid=1003, dir="/home/B")
595 dict(name="user_with_shell_A", uid=1001, shell="/bin/B"),
596 dict(name="user_with_shell_B", uid=1002, shell="/bin/B"),
597 dict(name="user_with_empty_shell", uid=1003, shell="/bin/B")
627 dict(name="user_with_sh_shell", uid=1001, shell="/bin/sh"),
628 dict(name="user_with_not_installed_shell", uid=1002,
630 dict(name="user_with_empty_shell", uid=1003, shell="")
661 dict(name="user_with_sh_shell", uid=1001, shell="/bin/sh"),
662 dict(name="user_with_not_installed_shell", uid=1002,
664 dict(name="user_with_empty_shell", uid=1003,
696 dict(name="user_with_sh_shell", uid=1001, shell="/bin/sh"),
697 dict(name="user_with_vetoed_shell", uid=1002,
699 dict(name="user_with_empty_shell", uid=1003,
719 ent.assert_passwd_by_name("user1", dict(name="user1", uid=1001,
742 dict(name="t(u)ser", passwd="*", uid=5000, gid=5001,
747 dict(name="group(_u)ser1", passwd="*", gid=5001,
787 dict(name="user", uid=2001, gid=2000, shell="/bin/bash"),
817 ent.assert_passwd_by_name("user1", dict(name="user1", uid=1001, gid=2001))
818 ent.assert_group_by_name("group1", dict(mem=ent.contains_only("user1")))
845 ent.assert_passwd_by_name("user1", dict(name="user1", uid=1001, gid=2001))
846 ent.assert_passwd_by_name("user2", dict(name="user2", uid=1002, gid=2002))
848 dict(mem=ent.contains_only("user1", "user2")))
861 ent.assert_passwd_by_name("user1", dict(name="user1", uid=1001, gid=2001))
862 ent.assert_passwd_by_name("user2", dict(name="user2", uid=1002, gid=2002))
863 ent.assert_group_by_name("group1", dict(mem=ent.contains_only("user1")))
875 ent.assert_passwd_by_name("user1", dict(name="user1", uid=1001, gid=2001))
876 ent.assert_passwd_by_name("user2", dict(name="user2", uid=1002, gid=2002))
877 ent.assert_group_by_name("group1", dict(mem=ent.contains_only()))
902 ent.assert_passwd_by_name("user1", dict(name="user1", uid=1001, gid=2001))
903 ent.assert_passwd_by_name("user2", dict(name="user2", uid=1002, gid=2002))
906 dict(mem=ent.contains_only("user1")))
908 dict(mem=ent.contains_only("user2")))
911 dict(mem=ent.contains_only("user1",
925 ent.assert_passwd_by_name("user1", dict(name="user1", uid=1001, gid=2001))
926 ent.assert_passwd_by_name("user2", dict(name="user2", uid=1002, gid=2002))
929 dict(mem=ent.contains_only("user1")))
931 dict(mem=ent.contains_only("user2")))
933 dict(mem=ent.contains_only("user1")))
945 ent.assert_passwd_by_name("user1", dict(name="user1", uid=1001, gid=2001))
946 ent.assert_passwd_by_name("user2", dict(name="user2", uid=1002, gid=2002))
949 dict(mem=ent.contains_only("user1")))
951 dict(mem=ent.contains_only("user2")))
953 dict(mem=ent.contains_only()))
982 dict(mem=ent.contains_only("user1")))