%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/mailman/tests/
Upload File :
Create Path :
Current File : //lib/mailman/tests/test_safedict.pyo

�
�ac@s�dZddlZddlZyddlmZWnek
rQddlZnXddlmZdejfd��YZ	dejfd��YZ
d	�Zed
kr�ej
dd�ndS(
s&Unit tests for the SafeDict.py module
i����N(t__init__(tSafeDicttTestSafeDictcBs#eZd�Zd�Zd�ZRS(cCs4tjidd6�}d|}|j|d�dS(Ntbartfoos%(foo)s(RtassertEqual(tselftsdtsi((sa/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/tests/test_safedict.pyt	test_okay s
cCs4tjidd6�}d|}|j|d�dS(NRRs%(baz)s(RR(RRR((sa/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/tests/test_safedict.pyttest_key_error%s
cCs-d}tji�}|j||d�dS(Ns<Missing key: ()>((RR(RtkeyR((sa/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/tests/test_safedict.pyttest_key_error_not_string*s(t__name__t
__module__R	R
R(((sa/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/tests/test_safedict.pyRs		tTestMsgSafeDictcBsGeZd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(cCstjd�|_dS(NsHTo: foo
From: bar
Subject: baz
Cc: aperson@dom.ain
Cc: bperson@dom.ain

(temailtmessage_from_stringt_msg(R((sa/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/tests/test_safedict.pytsetUp2scCs:tj|jidd6�}d|}|j|d�dS(NtvalueRs%(key)s(RtMsgSafeDictRR(RRR((sa/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/tests/test_safedict.pyttest_normal_key;s
cCs:tj|jidd6�}d|}|j|d�dS(NRttos
%(msg_to)sR(RRRR(RRR((sa/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/tests/test_safedict.pyttest_msg_key@s
cCs:tj|jidd6�}d|}|j|d�dS(NRtccs
%(allmsg_cc)ss aperson@dom.ain, bperson@dom.ain(RRRR(RRR((sa/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/tests/test_safedict.pyttest_allmsg_keyEs
cCs0tj|j�}d|}|j|d�dS(Ns%(msg_date)ssn/a(RRRR(RRR((sa/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/tests/test_safedict.pyttest_msg_no_keyJs
cCs0tj|j�}d|}|j|d�dS(Ns%(allmsg_date)ssn/a(RRRR(RRR((sa/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/tests/test_safedict.pyttest_allmsg_no_keyOs
cCsatj|jidd6�}|j�}|j�}|j�|j|d	d
ddd
g�dS(NRRt	allmsg_ccs aperson@dom.ain, bperson@dom.aintmsg_fromtmsg_subjecttbaztmsg_to(Rs aperson@dom.ain, bperson@dom.ain(sfoosbar(Rsbar(RR (R!sfoo(RRRtcopytitemstsortR(RRR"R#((sa/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/tests/test_safedict.pyt	test_copyTs
	(	R
RRRRRRRR%(((sa/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/tests/test_safedict.pyR1s							cCs<tj�}|jtjt��|jtjt��|S(N(tunittestt	TestSuitetaddTestt	makeSuiteRR(tsuite((sa/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/tests/test_safedict.pyR*bst__main__tdefaultTestR*(t__doc__RR&tMailmanRtImportErrortpathsRtTestCaseRRR*R
tmain(((sa/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/tests/test_safedict.pyt<module>s
1	

Zerion Mini Shell 1.0