diff options
| author | Sandesh Kumar Agrawal | 2013-01-17 05:24:32 +0530 |
|---|---|---|
| committer | Sandesh Kumar Agrawal | 2013-01-17 05:24:32 +0530 |
| commit | 5ffa4a1323c9e4f75334d2792b8a5f66d4e6f6f0 (patch) | |
| tree | d489bc8724434a2994d866c4e7f77c883bfe45e5 /src/mailman/runners/tests | |
| parent | c6dd23a544a552995fa4e0e22b8ae5c9dd8544c4 (diff) | |
| download | mailman-5ffa4a1323c9e4f75334d2792b8a5f66d4e6f6f0.tar.gz mailman-5ffa4a1323c9e4f75334d2792b8a5f66d4e6f6f0.tar.zst mailman-5ffa4a1323c9e4f75334d2792b8a5f66d4e6f6f0.zip | |
Test added to non_queue_runner bug
Diffstat (limited to 'src/mailman/runners/tests')
| -rw-r--r-- | src/mailman/runners/tests/test_lmtp.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mailman/runners/tests/test_lmtp.py b/src/mailman/runners/tests/test_lmtp.py index 3e31a1f5e..f58125eb8 100644 --- a/src/mailman/runners/tests/test_lmtp.py +++ b/src/mailman/runners/tests/test_lmtp.py @@ -27,9 +27,11 @@ __all__ = [ import smtplib import unittest +import os from datetime import datetime +from mailman.config import config from mailman.app.lifecycle import create_list from mailman.database.transaction import transaction from mailman.testing.helpers import get_lmtp_client, get_queue_messages @@ -109,3 +111,8 @@ Message-ID: <ant> self.assertEqual(len(messages), 1) self.assertEqual(messages[0].msgdata['received_time'], datetime(2005, 8, 1, 7, 49, 23)) + + def test_lmtp_queue_directory(self): + # Lmtp is a non queue runner, so it should not have a directory in var/queue + is_directory = os.path.isdir(os.path.join(config.paths['QUEUE_DIR'],'lmtp')) + self.assertEqual(is_directory,False) |
