summaryrefslogtreecommitdiff
path: root/src/mailman/rest/tests/test_root.py
diff options
context:
space:
mode:
authorBarry Warsaw2013-01-20 16:23:09 -0500
committerBarry Warsaw2013-01-20 16:23:09 -0500
commitccef4d2b12333c4177a557081b0b39dc1c29dd8b (patch)
tree10d1da23353e17a670a3b7cea2c3f3bfed47bc87 /src/mailman/rest/tests/test_root.py
parent8f9ff6711aa42dad7e01393202103bc98ebdaeea (diff)
parentdde63003c1b489744dce6b3181b95276ec88a1da (diff)
downloadmailman-ccef4d2b12333c4177a557081b0b39dc1c29dd8b.tar.gz
mailman-ccef4d2b12333c4177a557081b0b39dc1c29dd8b.tar.zst
mailman-ccef4d2b12333c4177a557081b0b39dc1c29dd8b.zip
Diffstat (limited to 'src/mailman/rest/tests/test_root.py')
-rw-r--r--src/mailman/rest/tests/test_root.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mailman/rest/tests/test_root.py b/src/mailman/rest/tests/test_root.py
index 0f75b14b8..4cf12da30 100644
--- a/src/mailman/rest/tests/test_root.py
+++ b/src/mailman/rest/tests/test_root.py
@@ -21,13 +21,16 @@ from __future__ import absolute_import, unicode_literals
__metaclass__ = type
__all__ = [
+ 'TestSystem',
]
import unittest
+import os
from urllib2 import HTTPError
+from mailman.config import config
from mailman.testing.helpers import call_api
from mailman.testing.layers import RESTLayer
@@ -67,3 +70,9 @@ class TestSystem(unittest.TestCase):
'receive_own_postings': True,
}, method='PUT')
self.assertEqual(cm.exception.code, 405)
+
+ def test_queue_directory(self):
+ # The REST runner is not queue runner, so it should not have a
+ # directory in var/queue.
+ queue_directory = os.path.join(config.QUEUE_DIR, 'rest')
+ self.assertFalse(os.path.isdir(queue_directory))