summaryrefslogtreecommitdiff
path: root/src/leap/keymanager/tests/test_keymanager.py
diff options
context:
space:
mode:
authorVictor Shyba <victor.shyba@gmail.com>2016-01-27 21:35:43 -0300
committerVictor Shyba <victor.shyba@gmail.com>2016-01-27 21:47:15 -0300
commite759ab61e8a22235c45192750b536612a6c2cb8a (patch)
treee59bf0842313bd92a75eb939f56254ce24dbf6bc /src/leap/keymanager/tests/test_keymanager.py
parenta4872bd64884cccd85e63cc2cae631f26dbc96c4 (diff)
[refactor] isolate requests
Isolate requests lib related code and update docstrings.
Diffstat (limited to 'src/leap/keymanager/tests/test_keymanager.py')
-rw-r--r--src/leap/keymanager/tests/test_keymanager.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/leap/keymanager/tests/test_keymanager.py b/src/leap/keymanager/tests/test_keymanager.py
index 856d6da..afcbd5f 100644
--- a/src/leap/keymanager/tests/test_keymanager.py
+++ b/src/leap/keymanager/tests/test_keymanager.py
@@ -342,7 +342,7 @@ class KeyManagerKeyManagementTestCase(KeyManagerWithSoledadTestCase):
yield km.fetch_key(ADDRESS_OTHER, REMOTE_KEY_URL, OpenPGPKey)
- get_mock.assert_called_once_with(REMOTE_KEY_URL, data=None,
+ get_mock.assert_called_once_with(REMOTE_KEY_URL,
verify=ca_bundle.where())
@inlineCallbacks
@@ -353,7 +353,7 @@ class KeyManagerKeyManagementTestCase(KeyManagerWithSoledadTestCase):
yield km.fetch_key(ADDRESS_OTHER, REMOTE_KEY_URL, OpenPGPKey)
- get_mock.assert_called_once_with(REMOTE_KEY_URL, data=None,
+ get_mock.assert_called_once_with(REMOTE_KEY_URL,
verify=ca_bundle.where())
@inlineCallbacks
@@ -364,7 +364,7 @@ class KeyManagerKeyManagementTestCase(KeyManagerWithSoledadTestCase):
yield km.fetch_key(ADDRESS_OTHER, REMOTE_KEY_URL, OpenPGPKey)
- get_mock.assert_called_once_with(REMOTE_KEY_URL, data=None,
+ get_mock.assert_called_once_with(REMOTE_KEY_URL,
verify=ca_bundle.where())
@inlineCallbacks
@@ -383,7 +383,7 @@ class KeyManagerKeyManagementTestCase(KeyManagerWithSoledadTestCase):
yield km.fetch_key(ADDRESS_OTHER, REMOTE_KEY_URL, OpenPGPKey)
# assert that combined bundle file is passed to get call
- get_mock.assert_called_once_with(REMOTE_KEY_URL, data=None,
+ get_mock.assert_called_once_with(REMOTE_KEY_URL,
verify=tmp_output.name)
# assert that files got appended