From d13fb37acd01dc1e4d62631e0e131a937a001f33 Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Thu, 26 Oct 2017 18:35:19 +0200 Subject: [test] fix key renew test --- tests/integration/keymanager/test_keymanager.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tests/integration/keymanager/test_keymanager.py') diff --git a/tests/integration/keymanager/test_keymanager.py b/tests/integration/keymanager/test_keymanager.py index 656b070c..2e4a9a97 100644 --- a/tests/integration/keymanager/test_keymanager.py +++ b/tests/integration/keymanager/test_keymanager.py @@ -172,11 +172,9 @@ class KeyManagerKeyManagementTestCase(KeyManagerWithSoledadTestCase): @defer.inlineCallbacks def test_get_public_key_fetches_remotely_if_key_expired(self): - km = self._key_manager() - nicknym_response = {'address': ADDRESS, - 'openpgp': DIFFERENT_PUBLIC_KEY} + km = self._key_manager(user=ADDRESS_2) km._nicknym.fetch_key_with_address = mock.Mock( - return_value=nicknym_response) + return_value=DIFFERENT_PUBLIC_KEY) # put key yield km._openpgp.put_raw_key(PUBLIC_KEY, ADDRESS) -- cgit v1.2.3