Current File : //home/strato/chroot/opt/RZpython2/lib/python2.7/test/test_spwd.pyo
�
��#ec@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((s./opt/RZpython2/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((s./opt/RZpython2/lib/python2.7/test/test_spwd.pyt
test_getspnamsH
	
(t__name__t
__module__RR$(((s./opt/RZpython2/lib/python2.7/test/test_spwd.pyRs	cCstjt�dS(N(Rtrun_unittestR(((s./opt/RZpython2/lib/python2.7/test/test_spwd.pyt	test_main:st__main__(
tostunittestttestRt
import_moduleRt
skipUnlessthasattrRtTestCaseRR(R%(((s./opt/RZpython2/lib/python2.7/test/test_spwd.pyt<module>s$	0