diff options
| author | Barry Warsaw | 2011-05-14 08:20:07 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2011-05-14 08:20:07 -0400 |
| commit | 520af4b499d2008e02b55f3f3e89fd20f79b48df (patch) | |
| tree | 728ba2be4ce42e6c43b5b55c33a38ac215cf2dd8 /src/mailman/queue/tests/test_outgoing.py | |
| parent | 1bfc2990a5d9d6e9bb8ae7241a4af6a7ad576f1c (diff) | |
| download | mailman-520af4b499d2008e02b55f3f3e89fd20f79b48df.tar.gz mailman-520af4b499d2008e02b55f3f3e89fd20f79b48df.tar.zst mailman-520af4b499d2008e02b55f3f3e89fd20f79b48df.zip | |
Diffstat (limited to 'src/mailman/queue/tests/test_outgoing.py')
| -rw-r--r-- | src/mailman/queue/tests/test_outgoing.py | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/src/mailman/queue/tests/test_outgoing.py b/src/mailman/queue/tests/test_outgoing.py index 6bc953beb..8ceda6066 100644 --- a/src/mailman/queue/tests/test_outgoing.py +++ b/src/mailman/queue/tests/test_outgoing.py @@ -188,7 +188,29 @@ Message-Id: <first> self._mlist.personalize = Personalization.full self._outq.enqueue(self._msg, msgdata, listname='test@example.com') self._runner.run() - self.assertTrue('verp' not in captured_msgdata) + self.assertFalse('verp' in captured_msgdata) + + def test_verp_never(self): + # Never VERP when the interval is zero. + msgdata = {} + self._outq.enqueue(self._msg, msgdata, listname='test@example.com') + with temporary_config('personalize', """ + [mta] + verp_delivery_interval: 0 + """): + self._runner.run() + self.assertEqual(captured_msgdata['verp'], False) + + def test_verp_always(self): + # Always VERP when the interval is one. + msgdata = {} + self._outq.enqueue(self._msg, msgdata, listname='test@example.com') + with temporary_config('personalize', """ + [mta] + verp_delivery_interval: 1 + """): + self._runner.run() + self.assertEqual(captured_msgdata['verp'], True) |
