From ea05405a343541a7162469d1d79da6c55f0c764b Mon Sep 17 00:00:00 2001 From: Abhilash Raj Date: Thu, 16 Apr 2015 16:45:01 -0400 Subject: Add test case to check a bug in falcon's Request class --- src/mailman/rest/tests/test_listconf.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') 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') -- cgit v1.3.1 From ec053e7682b14181147d0b7bedb1e5b19a46b56b Mon Sep 17 00:00:00 2001 From: Abhilash Raj Date: Thu, 16 Apr 2015 16:53:47 -0400 Subject: mark the test as an expected failure --- src/mailman/rest/tests/test_listconf.py | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/mailman/rest/tests/test_listconf.py b/src/mailman/rest/tests/test_listconf.py index 197e49521..560c3ec47 100644 --- a/src/mailman/rest/tests/test_listconf.py +++ b/src/mailman/rest/tests/test_listconf.py @@ -91,6 +91,7 @@ class TestConfiguration(unittest.TestCase): self.assertEqual(set(IAcceptableAliasSet(self._mlist).aliases), set(aliases)) + @unittest.expectedFailure def test_bad_description_update(self): resource, response = call_api( 'http://localhost:9001/3.0/lists/test@example.com/config', -- cgit v1.3.1