summaryrefslogtreecommitdiff
path: root/src/mailman/rest/tests/test_root.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/rest/tests/test_root.py')
-rw-r--r--src/mailman/rest/tests/test_root.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mailman/rest/tests/test_root.py b/src/mailman/rest/tests/test_root.py
index 0f75b14b8..6e08ce1f5 100644
--- a/src/mailman/rest/tests/test_root.py
+++ b/src/mailman/rest/tests/test_root.py
@@ -25,9 +25,11 @@ __all__ = [
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 +69,8 @@ class TestSystem(unittest.TestCase):
'receive_own_postings': True,
}, method='PUT')
self.assertEqual(cm.exception.code, 405)
+
+ def test_rest_queue_directory(self):
+ # Rest 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'],'rest'))
+ self.assertEqual(is_directory,False)