diff options
| author | Barry Warsaw | 2016-03-25 12:38:59 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2016-03-25 12:38:59 -0400 |
| commit | 1f039b2df371a569115b4ddc7bbc3786ef7d135d (patch) | |
| tree | 5f727128a9f73d75b510fd62cbeca00138ecae58 /src/mailman/rest/tests/test_listconf.py | |
| parent | ca4259f4abd2802f87b86907c281a8b4cdb8150b (diff) | |
| download | mailman-1f039b2df371a569115b4ddc7bbc3786ef7d135d.tar.gz mailman-1f039b2df371a569115b4ddc7bbc3786ef7d135d.tar.zst mailman-1f039b2df371a569115b4ddc7bbc3786ef7d135d.zip | |
Diffstat (limited to 'src/mailman/rest/tests/test_listconf.py')
| -rw-r--r-- | src/mailman/rest/tests/test_listconf.py | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/mailman/rest/tests/test_listconf.py b/src/mailman/rest/tests/test_listconf.py index 2132a5387..35bd516e0 100644 --- a/src/mailman/rest/tests/test_listconf.py +++ b/src/mailman/rest/tests/test_listconf.py @@ -17,11 +17,6 @@ """Test list configuration via the REST API.""" -__all__ = [ - 'TestConfiguration', - ] - - import unittest from mailman.app.lifecycle import create_list @@ -80,7 +75,6 @@ RESOURCE = dict( ) - class TestConfiguration(unittest.TestCase): """Test list configuration via the REST API.""" @@ -168,7 +162,7 @@ class TestConfiguration(unittest.TestCase): call_api('http://localhost:9001/3.0/lists/ant.example.com' '/config/mail_host', dict(mail_host='foo.example.com'), - 'PUT') + 'PUT') self.assertEqual(cm.exception.code, 400) self.assertEqual(cm.exception.reason, b'Read-only attribute: mail_host') @@ -213,8 +207,8 @@ class TestConfiguration(unittest.TestCase): def test_unknown_patch_attribute(self): with self.assertRaises(HTTPError) as cm: call_api('http://localhost:9001/3.0/lists/ant.example.com/config', - dict(bogus=1), - 'PATCH') + dict(bogus=1), + 'PATCH') self.assertEqual(cm.exception.code, 400) self.assertEqual(cm.exception.reason, b'Unknown attribute: bogus') @@ -223,7 +217,7 @@ class TestConfiguration(unittest.TestCase): call_api('http://localhost:9001/3.0/lists/ant.example.com' '/config/mail_host', dict(mail_host='foo.example.com'), - 'PATCH') + 'PATCH') self.assertEqual(cm.exception.code, 400) self.assertEqual(cm.exception.reason, b'Read-only attribute: mail_host') |
