summaryrefslogtreecommitdiff
path: root/src/mailman/rest/tests/test_lists.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/rest/tests/test_lists.py')
-rw-r--r--src/mailman/rest/tests/test_lists.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mailman/rest/tests/test_lists.py b/src/mailman/rest/tests/test_lists.py
index d0eba7c11..4d22c2007 100644
--- a/src/mailman/rest/tests/test_lists.py
+++ b/src/mailman/rest/tests/test_lists.py
@@ -218,6 +218,12 @@ class TestLists(unittest.TestCase):
call_api('http://localhost:9001/3.0/lists/bogus.example.com')
self.assertEqual(cm.exception.code, 404)
+ def test_not_found_member_role(self):
+ with self.assertRaises(HTTPError) as cm:
+ call_api('http://localhost:9001/3.0/lists/test.example.com'
+ '/owner/nobody@example.com')
+ self.assertEqual(cm.exception.code, 404)
+
class TestListArchivers(unittest.TestCase):