summaryrefslogtreecommitdiff
path: root/src/mailman/runners/tests/test_rest.py
diff options
context:
space:
mode:
authorBarry Warsaw2017-02-06 09:54:05 -0500
committerBarry Warsaw2017-02-06 09:55:00 -0500
commit26e9f870a3d6aea1c7ff4d576d9b38e3b4d5bbbc (patch)
treedb590d461c1e9c956c1f562f826d8ba0ddf405b3 /src/mailman/runners/tests/test_rest.py
parenta75a718fa9073a51df8ce4deafe8a4851818b0a7 (diff)
downloadmailman-26e9f870a3d6aea1c7ff4d576d9b38e3b4d5bbbc.tar.gz
mailman-26e9f870a3d6aea1c7ff4d576d9b38e3b4d5bbbc.tar.zst
mailman-26e9f870a3d6aea1c7ff4d576d9b38e3b4d5bbbc.zip
Remove the dependency on httplib2.
Closes #42
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')