Current File : //opt/imh-python/lib/python2.7/test/test_spwd.pyo
�
��Wc@s�ddlZddlZddlmZejd�Zejeed�o[ej�dkd�dej	fd��Y�Z
d	�Zed
kr�e�ndS(i����N(ttest_supporttspwdtgeteuidisroot privileges requiredtTestSpwdRootcBseZd�Zd�ZRS(cCsDtj�}|j|t�x!|D]}|j|tj�q#WdS(N(RtgetspalltassertIsInstancetlisttstruct_spwd(tselftentriestentry((sg/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_spwd.pyt
test_getspalls
cCs�tj�}|s"|jd�n|dj}tj|�}|j|tj�|j|j|�|j|j|d�|j|jt	�|j|j|d�|j|j
t�|j|j
|d�|j|jt�|j|j|d�|j|j
t�|j|j
|d�|j|jt�|j|j|d�|j|jt�|j|j|d�|j|jt�|j|j|d	�|j|jt�|j|j|d
�|jt��}tjd�WdQX|jt	|j�d�|jttj�|jttjd�|jttj|d�tjr�yt|�}Wntk
rwq�X|jtj|�|�ndS(
Nsempty shadow password databaseiiiiiiiiisinvalid user names'getspnam(): name not found'(RRtskipTesttsp_namtgetspnamRRtassertEqualtsp_pwdtstrt	sp_lstchgtinttsp_mintsp_maxtsp_warntsp_inactt	sp_expiretsp_flagtassertRaisestKeyErrort	exceptiont	TypeErrorRthave_unicodetunicodetUnicodeDecodeError(RR	trandom_nameR
tcxtunicode_name((sg/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_spwd.pyt
test_getspnamsH
	
(t__name__t
__module__RR$(((sg/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_spwd.pyRs	cCstjt�dS(N(Rtrun_unittestR(((sg/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_spwd.pyt	test_main:st__main__(
tostunittestttestRt
import_moduleRt
skipUnlessthasattrRtTestCaseRR(R%(((sg/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_spwd.pyt<module>s$	0