python (3.12.0)

(root)/
lib/
python3.12/
test/
__pycache__/
test_spwd.cpython-312.opt-2.pyc

ΑeWddlZddlZddlmZddlZej
5ejdeejdZ	dddejeedxrejdk(dGddejZejeedxrejdk7d	Gd
dejZedk(rej"yy#1swYxYw)
N)
import_helperignorespwdgeteuidzroot privileges requiredceZdZdZdZy)TestSpwdRootctj}|j|t|D]"}|j|tj$y)N)rgetspallassertIsInstanceliststruct_spwd)selfentriesentrys   B/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/test/test_spwd.py
test_getspallzTestSpwdRoot.test_getspallsB--/gt,	;E!!%)9)9:	;ctj}|s|jd|dj}tj	|}|j|tj|j|j||j|j|d|j|j|j|j|jt|j|j|d|j|j|j|j|jt|j|j|d|j|jt|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|j&t|j|j&|d
|j)t*5}tj	dddd|jtj,d|j)t.tj|j)t.tjd|j)t.tj|d	t1j2|}|j)t.tj|y#1swYxYw#t4$rYywxYw)
Nzempty shadow password databaserzinvalid user namez'getspnam(): name not found')rr
skipTestsp_nampgetspnamrr
assertEqualsp_namsp_pwdpstrsp_pwd	sp_lstchgintsp_minsp_maxsp_warnsp_inact	sp_expiresp_flagassertRaisesKeyError	exception	TypeErrorosfsencodeUnicodeEncodeError)rrrandom_namercx
bytes_names      r
test_getspnamzTestSpwdRoot.test_getspnams--/MM:;aj((

k*eT%5%564a15emmS1a15eoos3%(3ellC0uQx0ellC0uQx0emmS1a1ennc2q2eoos3%(3emmS1a1


x
(	/BMM-.	/R\\*,JK)T]]3)T]]A6)T]]KC	D[1J
i
C	/	/"		sO.3O:.O7:	PPN)__name__
__module____qualname__rr7rrrrs
;&Drrznon-root user requiredceZdZdZy)TestSpwdNonRootcd}	|jt5}tj|dddy#1swYyxYw#t$r!}|jd|d|Yd}~yd}~wwxYw)Nbinzspwd entry z doesn't exist: )r-PermissionErrorrrr.r)rnamecmexcs    rtest_getspnam_exceptionz'TestSpwdNonRoot.test_getspnam_exceptionCsc	K""?3
$r

d#
$
$
$	KMMtSIJJ	Ks0A8AAAA	A.
A))A.N)r8r9r:rDr;rrr=r=?sKrr=__main__)r1unittesttest.supportrwarningscatch_warningssimplefilterDeprecationWarning
import_moduler
skipUnlesshasattrrTestCaserr=r8mainr;rr<module>rQs	&X/H($67&=&&v.D/
WR+A


0A/1.D8$$.D1.DbWR+A


0A-/Kh''K/KzHMMOK//s&C::D