summaryrefslogtreecommitdiff
path: root/src/mailman/runners/tests
diff options
context:
space:
mode:
authorSandesh Kumar Agrawal2013-01-17 05:24:32 +0530
committerSandesh Kumar Agrawal2013-01-17 05:24:32 +0530
commit5ffa4a1323c9e4f75334d2792b8a5f66d4e6f6f0 (patch)
treed489bc8724434a2994d866c4e7f77c883bfe45e5 /src/mailman/runners/tests
parentc6dd23a544a552995fa4e0e22b8ae5c9dd8544c4 (diff)
downloadmailman-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.py7
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)