summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mailman/rest/tests/test_listconf.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mailman/rest/tests/test_listconf.py b/src/mailman/rest/tests/test_listconf.py
index 35bd516e0..eb39d7dea 100644
--- a/src/mailman/rest/tests/test_listconf.py
+++ b/src/mailman/rest/tests/test_listconf.py
@@ -410,3 +410,17 @@ class TestConfiguration(unittest.TestCase):
self.assertEqual(response.status, 204)
self.assertEqual(
self._mlist.goodbye_message_uri, 'mailman:///salutation.txt')
+
+ def test_advertised(self):
+ # GL issue #220 claimed advertised was read-only.
+ with transaction():
+ self._mlist.advertised = False
+ resource, response = call_api(
+ 'http://localhost:9001/3.0/lists/ant.example.com/config'
+ '/advertised')
+ self.assertFalse(resource['advertised'])
+ resource, response = call_api(
+ 'http://localhost:9001/3.0/lists/ant.example.com/config',
+ dict(advertised=True),
+ 'PATCH')
+ self.assertTrue(self._mlist.advertised)