summaryrefslogtreecommitdiff
path: root/src/mailman/runners/tests/test_rest.py
diff options
context:
space:
mode:
authorBarry Warsaw2017-02-06 15:30:01 +0000
committerBarry Warsaw2017-02-06 15:30:01 +0000
commit03e04a93efa312bfec58dd267959d401e9bcf22b (patch)
treedb590d461c1e9c956c1f562f826d8ba0ddf405b3 /src/mailman/runners/tests/test_rest.py
parenta75a718fa9073a51df8ce4deafe8a4851818b0a7 (diff)
parent26e9f870a3d6aea1c7ff4d576d9b38e3b4d5bbbc (diff)
downloadmailman-03e04a93efa312bfec58dd267959d401e9bcf22b.tar.gz
mailman-03e04a93efa312bfec58dd267959d401e9bcf22b.tar.zst
mailman-03e04a93efa312bfec58dd267959d401e9bcf22b.zip
Diffstat (limited to 'src/mailman/runners/tests/test_rest.py')
-rw-r--r--src/mailman/runners/tests/test_rest.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mailman/runners/tests/test_rest.py b/src/mailman/runners/tests/test_rest.py
index 4bd71d990..470ede240 100644
--- a/src/mailman/runners/tests/test_rest.py
+++ b/src/mailman/runners/tests/test_rest.py
@@ -38,6 +38,7 @@ class TestRESTRunner(unittest.TestCase):
wait_for_webservice()
# This should not raise an exception. The best way to assert this is
# to ensure that the response is valid.
- response, json = call_api('http://localhost:9001/3.0/system')
- self.assertEqual(json['content-location'],
- 'http://localhost:9001/3.0/system')
+ json, response = call_api('http://localhost:9001/3.0/system/versions')
+ self.assertEqual(
+ json['self_link'],
+ 'http://localhost:9001/3.0/system/versions')