Current File : //opt/imh-python/lib/python2.7/test/test_pwd.pyo
�
��Wc@ssddlZddlZddlmZejd�Zdejfd��YZd�Ze	dkroe�ndS(i����N(ttest_supporttpwdtPwdTestcBs#eZd�Zd�Zd�ZRS(cCsitj�}xV|D]N}|jt|�d�|j|d|j�|j|jt�|j|d|j�|j|jt�|j|d|j�|j|jt	t
f�|j|d|j�|j|jt	t
f�|j|d|j�|j|jt�|j|d|j
�|j|j
t�|j|d|j�|j|jt�qWdS(	Niiiiiiii(RtgetpwalltassertEqualtlentpw_nametassertIsInstancet
basestringt	pw_passwdtpw_uidtinttlongtpw_gidtpw_gecostpw_dirtpw_shell(tselftentrieste((sf/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pwd.pyttest_values	s"
cCs�tj�}i}i}t|�dkr:|jd�nxF|D]>}|j|jg�j|�|j|jg�j|�qAWxu|D]m}|ds�|ddkr�q�n|jtj	|j�||j�|jtj
|j�||j�q�WdS(Ni�s*passwd file is huge; extended test skippedit+(RRRtskipTestt
setdefaultRtappendR
tassertIntgetpwnamtgetpwuid(RRt
entriesbynametentriesbyuidR((sf/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pwd.pyttest_values_extended#s
 
#cCs&|jttj�|jttjd�|jttj�|jttjd�|jttjd�i}i}x=tj�D]/\}}}}}}}	|||<|||<q�W|j�}
d}|
|}x�||kr�t|�}
x�tt	|
��D]Y}|
|dkr"d|
|<Pq�|
|dkr8q�q�t
t|
|�d�|
|<Pq�W|d}y|
|}Wntk
r�PnXdj
|
�}q�W|jttj|�tj}|j||�|jttj|�|jttjd	�|jttjd�|jttjd�dS(Ng��Q�	@i*itztAtZiti����ii�l	l	l����(tassertRaisest	TypeErrorRRRRtkeystlisttxrangeRtchrtordt
IndexErrortjointKeyErrortsystmaxinttassertNotIn(Rtbynamestbyuidstntptutgtgecostdtstallnamestnameitfakenametcharstitfakeuid((sf/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pwd.pyttest_errors7sH(




	(t__name__t
__module__RRR?(((sf/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pwd.pyRs		cCstjt�dS(N(Rtrun_unittestR(((sf/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pwd.pyt	test_mainnst__main__(
R-tunittestttestRt
import_moduleRtTestCaseRRCR@(((sf/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_pwd.pyt<module>sg