diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/mailman/rest/tests/test_listconf.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mailman/rest/tests/test_listconf.py b/src/mailman/rest/tests/test_listconf.py index 860adac57..0c36ef30a 100644 --- a/src/mailman/rest/tests/test_listconf.py +++ b/src/mailman/rest/tests/test_listconf.py @@ -92,6 +92,7 @@ class TestConfiguration(unittest.TestCase): self.assertEqual(set(IAcceptableAliasSet(self._mlist).aliases), set(aliases)) + def test_patch_subscription_policy(self): # The new subscription_policy value can be patched. # @@ -108,3 +109,11 @@ class TestConfiguration(unittest.TestCase): # And now we verify that it has the requested setting. self.assertEqual(self._mlist.subscription_policy, SubscriptionPolicy.confirm_then_moderate) + + @unittest.expectedFailure + def test_bad_description_update(self): + resource, response = call_api( + 'http://localhost:9001/3.0/lists/test@example.com/config', + dict(description='A description with , to check stuff'), 'PATCH') + self.assertEqual(self._mlist.description, + 'A description with , to check stuff') |
