summaryrefslogtreecommitdiff
path: root/src/mailman/rest
diff options
context:
space:
mode:
authorAbhilash Raj2015-04-16 16:45:01 -0400
committerAbhilash Raj2015-04-16 16:45:01 -0400
commitea05405a343541a7162469d1d79da6c55f0c764b (patch)
tree0e4914e3ac66ac51ffb1c9c4c29a553b613cbc22 /src/mailman/rest
parenteb104f74be5941f6f3d7b81d97d6db3a5ea990d6 (diff)
downloadmailman-ea05405a343541a7162469d1d79da6c55f0c764b.tar.gz
mailman-ea05405a343541a7162469d1d79da6c55f0c764b.tar.zst
mailman-ea05405a343541a7162469d1d79da6c55f0c764b.zip
Add test case to check a bug in falcon's Request class
Diffstat (limited to 'src/mailman/rest')
-rw-r--r--src/mailman/rest/tests/test_listconf.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mailman/rest/tests/test_listconf.py b/src/mailman/rest/tests/test_listconf.py
index ddb43a8ea..197e49521 100644
--- a/src/mailman/rest/tests/test_listconf.py
+++ b/src/mailman/rest/tests/test_listconf.py
@@ -90,3 +90,11 @@ class TestConfiguration(unittest.TestCase):
# All three acceptable aliases were set.
self.assertEqual(set(IAcceptableAliasSet(self._mlist).aliases),
set(aliases))
+
+ 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(response.status, 204)
+ self.assertEqual(self._mlist.description,
+ 'A description with , to check stuff')