Barry Warsaw pushed to branch master at mailman / Mailman
Commits:
011d278a by Barry Warsaw at 2016-03-31T18:22:32-04:00
Add a test to verify the problem isn't in core.
- - - - -
1 changed file:
- src/mailman/rest/tests/test_listconf.py
Changes:
=====================================
src/mailman/rest/tests/test_listconf.py
=====================================
--- 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)
View it on GitLab:
https://gitlab.com/mailman/mailman/commit/011d278abcc25d417673f70a4eac0a8a78137d95
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org