summaryrefslogtreecommitdiff
path: root/src/leap/keymanager/tests/test_keymanager.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2014-10-09 17:35:15 +0200
committerKali Kaneko <kali@leap.se>2014-10-09 17:35:15 +0200
commit55b6d38c14fd5fbbc2a56e4edec7a8715cc3253d (patch)
tree0918cb5bc1d35170ea57685ecd7ee45af4248297 /src/leap/keymanager/tests/test_keymanager.py
parent613e59c5a34e99e669e727caff00e1516369e3d0 (diff)
parent13eafd0ad9a34581f37f5c0adde4ab59d13f0b85 (diff)
Merge remote-tracking branch 'meskio/feature/put_key_ascii' into develop
Diffstat (limited to 'src/leap/keymanager/tests/test_keymanager.py')
-rw-r--r--src/leap/keymanager/tests/test_keymanager.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/leap/keymanager/tests/test_keymanager.py b/src/leap/keymanager/tests/test_keymanager.py
index 7192bfb..39b729d 100644
--- a/src/leap/keymanager/tests/test_keymanager.py
+++ b/src/leap/keymanager/tests/test_keymanager.py
@@ -466,6 +466,17 @@ class KeyManagerKeyManagementTestCase(KeyManagerWithSoledadTestCase):
self.assertIsInstance(key, OpenPGPKey)
self.assertEqual(ADDRESS, key.address)
+ def test_put_key_ascii(self):
+ """
+ Test that putting ascii key works
+ """
+ km = self._key_manager(url='http://nickserver.domain')
+
+ km.put_key(PUBLIC_KEY)
+ key = km.get_key(ADDRESS, OpenPGPKey)
+ self.assertIsInstance(key, OpenPGPKey)
+ self.assertEqual(ADDRESS, key.address)
+
class KeyManagerCryptoTestCase(KeyManagerWithSoledadTestCase):