diff options
| author | Barry Warsaw | 2014-12-29 17:44:58 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2014-12-29 17:44:58 -0500 |
| commit | 37e72b0a6aaefcb90bf7d9ef23fdf24c07979551 (patch) | |
| tree | 2965659ef0ad71afc12dbc79c263ea513dc61b69 /src/mailman/rest/tests/test_root.py | |
| parent | 477ac216b4abbd1f96ff4fa3a9583a76ca993dc3 (diff) | |
| download | mailman-37e72b0a6aaefcb90bf7d9ef23fdf24c07979551.tar.gz mailman-37e72b0a6aaefcb90bf7d9ef23fdf24c07979551.tar.zst mailman-37e72b0a6aaefcb90bf7d9ef23fdf24c07979551.zip | |
Diffstat (limited to 'src/mailman/rest/tests/test_root.py')
| -rw-r--r-- | src/mailman/rest/tests/test_root.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/mailman/rest/tests/test_root.py b/src/mailman/rest/tests/test_root.py index a91a179e0..510120087 100644 --- a/src/mailman/rest/tests/test_root.py +++ b/src/mailman/rest/tests/test_root.py @@ -22,7 +22,6 @@ from __future__ import absolute_import, print_function, unicode_literals __metaclass__ = type __all__ = [ 'TestRoot', - 'TestSystemConfiguration', ] @@ -67,12 +66,6 @@ class TestRoot(unittest.TestCase): call_api('http://localhost:9001/3.0/does-not-exist') self.assertEqual(cm.exception.code, 404) - def test_system_url_too_long(self): - # /system/foo/bar is not allowed. - with self.assertRaises(HTTPError) as cm: - call_api('http://localhost:9001/3.0/system/foo/bar') - self.assertEqual(cm.exception.code, 400) - def test_system_url_not_preferences(self): # /system/foo where `foo` is not `preferences`. with self.assertRaises(HTTPError) as cm: @@ -132,8 +125,3 @@ class TestRoot(unittest.TestCase): self.assertEqual(content['title'], '401 Unauthorized') self.assertEqual(content['description'], 'User is not authorized for the REST API') - - - -class TestSystemConfiguration(unittest.TestCase): - layer = RESTLayer |
