summaryrefslogtreecommitdiff
path: root/src/mailman/queue/tests/test_outgoing.py
diff options
context:
space:
mode:
authorBarry Warsaw2011-05-14 08:22:36 -0400
committerBarry Warsaw2011-05-14 08:22:36 -0400
commit9d30e3d7f584093fd30d2cbdd1124b4d49adb132 (patch)
tree069e91e7b1a436336eb23683bbb0fd474924fab4 /src/mailman/queue/tests/test_outgoing.py
parent520af4b499d2008e02b55f3f3e89fd20f79b48df (diff)
downloadmailman-9d30e3d7f584093fd30d2cbdd1124b4d49adb132.tar.gz
mailman-9d30e3d7f584093fd30d2cbdd1124b4d49adb132.tar.zst
mailman-9d30e3d7f584093fd30d2cbdd1124b4d49adb132.zip
Diffstat (limited to 'src/mailman/queue/tests/test_outgoing.py')
-rw-r--r--src/mailman/queue/tests/test_outgoing.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/mailman/queue/tests/test_outgoing.py b/src/mailman/queue/tests/test_outgoing.py
index 8ceda6066..da090f31e 100644
--- a/src/mailman/queue/tests/test_outgoing.py
+++ b/src/mailman/queue/tests/test_outgoing.py
@@ -212,6 +212,30 @@ Message-Id: <first>
self._runner.run()
self.assertEqual(captured_msgdata['verp'], True)
+ def test_verp_on_interval_match(self):
+ # VERP every so often, when the post_id matches.
+ self._mlist.post_id = 5
+ msgdata = {}
+ self._outq.enqueue(self._msg, msgdata, listname='test@example.com')
+ with temporary_config('personalize', """
+ [mta]
+ verp_delivery_interval: 5
+ """):
+ self._runner.run()
+ self.assertEqual(captured_msgdata['verp'], True)
+
+ def test_no_verp_on_interval_miss(self):
+ # VERP every so often, when the post_id matches.
+ self._mlist.post_id = 4
+ msgdata = {}
+ self._outq.enqueue(self._msg, msgdata, listname='test@example.com')
+ with temporary_config('personalize', """
+ [mta]
+ verp_delivery_interval: 5
+ """):
+ self._runner.run()
+ self.assertEqual(captured_msgdata['verp'], False)
+
def test_suite():