Support bundled GPG and change API.
[keymanager.git] / src / leap / keymanager / tests / test_keymanager.py
1 ## -*- coding: utf-8 -*-
2 # test_keymanager.py
3 # Copyright (C) 2013 LEAP
4 #
5 # This program is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18
19 """
20 Tests for the Key Manager.
21 """
22
23
24 from mock import Mock
25 from leap.common.testing.basetest import BaseLeapTest
26 from leap.soledad import Soledad
27 from leap.keymanager import (
28     KeyManager,
29     openpgp,
30     KeyNotFound,
31     NoPasswordGiven,
32     errors,
33 )
34 from leap.keymanager.openpgp import OpenPGPKey
35 from leap.keymanager.keys import (
36     is_address,
37     build_key_from_dict,
38 )
39
40
41 ADDRESS = 'leap@leap.se'
42 ADDRESS_2 = 'anotheruser@leap.se'
43 GPG_BINARY_PATH = '/usr/bin/gpg'
44
45
46 class KeyManagerUtilTestCase(BaseLeapTest):
47
48     def setUp(self):
49         pass
50
51     def tearDown(self):
52         pass
53
54     def test_is_address(self):
55         self.assertTrue(
56             is_address('user@leap.se'),
57             'Incorrect address detection.')
58         self.assertFalse(
59             is_address('userleap.se'),
60             'Incorrect address detection.')
61         self.assertFalse(
62             is_address('user@'),
63             'Incorrect address detection.')
64         self.assertFalse(
65             is_address('@leap.se'),
66             'Incorrect address detection.')
67
68     def test_build_key_from_dict(self):
69         kdict = {
70             'address': ADDRESS,
71             'key_id': 'key_id',
72             'fingerprint': 'fingerprint',
73             'key_data': 'key_data',
74             'private': 'private',
75             'length': 'length',
76             'expiry_date': 'expiry_date',
77             'first_seen_at': 'first_seen_at',
78             'last_audited_at': 'last_audited_at',
79             'validation': 'validation',
80         }
81         key = build_key_from_dict(OpenPGPKey, ADDRESS, kdict)
82         self.assertEqual(
83             kdict['address'], key.address,
84             'Wrong data in key.')
85         self.assertEqual(
86             kdict['key_id'], key.key_id,
87             'Wrong data in key.')
88         self.assertEqual(
89             kdict['fingerprint'], key.fingerprint,
90             'Wrong data in key.')
91         self.assertEqual(
92             kdict['key_data'], key.key_data,
93             'Wrong data in key.')
94         self.assertEqual(
95             kdict['private'], key.private,
96             'Wrong data in key.')
97         self.assertEqual(
98             kdict['length'], key.length,
99             'Wrong data in key.')
100         self.assertEqual(
101             kdict['expiry_date'], key.expiry_date,
102             'Wrong data in key.')
103         self.assertEqual(
104             kdict['first_seen_at'], key.first_seen_at,
105             'Wrong data in key.')
106         self.assertEqual(
107             kdict['last_audited_at'], key.last_audited_at,
108             'Wrong data in key.')
109         self.assertEqual(
110             kdict['validation'], key.validation,
111             'Wrong data in key.')
112
113
114 class KeyManagerWithSoledadTestCase(BaseLeapTest):
115
116     def setUp(self):
117         # mock key fetching and storing so Soledad doesn't fail when trying to
118         # reach the server.
119         Soledad._get_secrets_from_shared_db = Mock(return_value=None)
120         Soledad._put_secrets_in_shared_db = Mock(return_value=None)
121
122         self._soledad = Soledad(
123             "leap@leap.se",
124             "123456",
125             secrets_path=self.tempdir + "/secret.gpg",
126             local_db_path=self.tempdir + "/soledad.u1db",
127             server_url='',
128             cert_file=None,
129             auth_token=None,
130         )
131
132     def tearDown(self):
133         km = self._key_manager()
134         for key in km.get_all_keys_in_local_db():
135             km._wrapper_map[key.__class__].delete_key(key)
136         for key in km.get_all_keys_in_local_db(private=True):
137             km._wrapper_map[key.__class__].delete_key(key)
138
139     def _key_manager(self, user=ADDRESS, url=''):
140         return KeyManager(user, url, self._soledad,
141                           gpgbinary=GPG_BINARY_PATH)
142
143
144 class OpenPGPCryptoTestCase(KeyManagerWithSoledadTestCase):
145
146     def _test_openpgp_gen_key(self):
147         pgp = openpgp.OpenPGPScheme(self._soledad)
148         self.assertRaises(KeyNotFound, pgp.get_key, 'user@leap.se')
149         key = pgp.gen_key('user@leap.se')
150         self.assertIsInstance(key, openpgp.OpenPGPKey)
151         self.assertEqual(
152             'user@leap.se', key.address, 'Wrong address bound to key.')
153         self.assertEqual(
154             '4096', key.length, 'Wrong key length.')
155
156     def test_openpgp_put_delete_key(self):
157         pgp = openpgp.OpenPGPScheme(
158             self._soledad, gpgbinary=GPG_BINARY_PATH)
159         self.assertRaises(KeyNotFound, pgp.get_key, ADDRESS)
160         pgp.put_ascii_key(PUBLIC_KEY)
161         key = pgp.get_key(ADDRESS, private=False)
162         pgp.delete_key(key)
163         self.assertRaises(KeyNotFound, pgp.get_key, ADDRESS)
164
165     def test_openpgp_put_ascii_key(self):
166         pgp = openpgp.OpenPGPScheme(
167             self._soledad, gpgbinary=GPG_BINARY_PATH)
168         self.assertRaises(KeyNotFound, pgp.get_key, ADDRESS)
169         pgp.put_ascii_key(PUBLIC_KEY)
170         key = pgp.get_key(ADDRESS, private=False)
171         self.assertIsInstance(key, openpgp.OpenPGPKey)
172         self.assertEqual(
173             ADDRESS, key.address, 'Wrong address bound to key.')
174         self.assertEqual(
175             '4096', key.length, 'Wrong key length.')
176         pgp.delete_key(key)
177         self.assertRaises(KeyNotFound, pgp.get_key, ADDRESS)
178
179     def test_get_public_key(self):
180         pgp = openpgp.OpenPGPScheme(
181             self._soledad, gpgbinary=GPG_BINARY_PATH)
182         self.assertRaises(KeyNotFound, pgp.get_key, ADDRESS)
183         pgp.put_ascii_key(PUBLIC_KEY)
184         self.assertRaises(
185             KeyNotFound, pgp.get_key, ADDRESS, private=True)
186         key = pgp.get_key(ADDRESS, private=False)
187         self.assertEqual(ADDRESS, key.address)
188         self.assertFalse(key.private)
189         self.assertEqual(KEY_FINGERPRINT, key.fingerprint)
190         pgp.delete_key(key)
191         self.assertRaises(KeyNotFound, pgp.get_key, ADDRESS)
192
193     def test_openpgp_encrypt_decrypt(self):
194         # encrypt
195         pgp = openpgp.OpenPGPScheme(
196             self._soledad, gpgbinary=GPG_BINARY_PATH)
197         pgp.put_ascii_key(PUBLIC_KEY)
198         pubkey = pgp.get_key(ADDRESS, private=False)
199         cyphertext = pgp.encrypt('data', pubkey)
200         # assert
201         self.assertTrue(cyphertext is not None)
202         self.assertTrue(cyphertext != '')
203         self.assertTrue(cyphertext != 'data')
204         self.assertTrue(pgp.is_encrypted(cyphertext))
205         self.assertTrue(pgp.is_encrypted(cyphertext))
206         # decrypt
207         self.assertRaises(
208             KeyNotFound, pgp.get_key, ADDRESS, private=True)
209         pgp.put_ascii_key(PRIVATE_KEY)
210         privkey = pgp.get_key(ADDRESS, private=True)
211         plaintext = pgp.decrypt(cyphertext, privkey)
212         pgp.delete_key(pubkey)
213         pgp.delete_key(privkey)
214         self.assertRaises(
215             KeyNotFound, pgp.get_key, ADDRESS, private=False)
216         self.assertRaises(
217             KeyNotFound, pgp.get_key, ADDRESS, private=True)
218
219     def test_verify_with_private_raises(self):
220         pgp = openpgp.OpenPGPScheme(
221             self._soledad, gpgbinary=GPG_BINARY_PATH)
222         pgp.put_ascii_key(PRIVATE_KEY)
223         data = 'data'
224         privkey = pgp.get_key(ADDRESS, private=True)
225         signed = pgp.sign(data, privkey)
226         self.assertRaises(
227             AssertionError,
228             pgp.verify, signed, privkey)
229
230     def test_sign_with_public_raises(self):
231         pgp = openpgp.OpenPGPScheme(
232             self._soledad, gpgbinary=GPG_BINARY_PATH)
233         pgp.put_ascii_key(PUBLIC_KEY)
234         data = 'data'
235         pubkey = pgp.get_key(ADDRESS, private=False)
236         self.assertRaises(
237             AssertionError,
238             pgp.sign, data, pubkey)
239
240     def test_verify_with_wrong_key_raises(self):
241         pgp = openpgp.OpenPGPScheme(
242             self._soledad, gpgbinary=GPG_BINARY_PATH)
243         pgp.put_ascii_key(PRIVATE_KEY)
244         data = 'data'
245         privkey = pgp.get_key(ADDRESS, private=True)
246         signed = pgp.sign(data, privkey)
247         pgp.put_ascii_key(PUBLIC_KEY_2)
248         wrongkey = pgp.get_key(ADDRESS_2)
249         self.assertRaises(
250             errors.InvalidSignature,
251             pgp.verify, signed, wrongkey)
252
253     def test_encrypt_sign_with_public_raises(self):
254         pgp = openpgp.OpenPGPScheme(
255             self._soledad, gpgbinary=GPG_BINARY_PATH)
256         pgp.put_ascii_key(PRIVATE_KEY)
257         data = 'data'
258         privkey = pgp.get_key(ADDRESS, private=True)
259         pubkey = pgp.get_key(ADDRESS, private=False)
260         self.assertRaises(
261             AssertionError,
262             pgp.encrypt, data, privkey, sign=pubkey)
263
264     def test_decrypt_verify_with_private_raises(self):
265         pgp = openpgp.OpenPGPScheme(
266             self._soledad, gpgbinary=GPG_BINARY_PATH)
267         pgp.put_ascii_key(PRIVATE_KEY)
268         data = 'data'
269         privkey = pgp.get_key(ADDRESS, private=True)
270         pubkey = pgp.get_key(ADDRESS, private=False)
271         encrypted_and_signed = pgp.encrypt(
272             data, pubkey, sign=privkey)
273         self.assertRaises(
274             AssertionError,
275             pgp.decrypt,
276             encrypted_and_signed, privkey, verify=privkey)
277
278     def test_decrypt_verify_with_wrong_key_raises(self):
279         pgp = openpgp.OpenPGPScheme(
280             self._soledad, gpgbinary=GPG_BINARY_PATH)
281         pgp.put_ascii_key(PRIVATE_KEY)
282         data = 'data'
283         privkey = pgp.get_key(ADDRESS, private=True)
284         pubkey = pgp.get_key(ADDRESS, private=False)
285         encrypted_and_signed = pgp.encrypt(data, pubkey, sign=privkey)
286         pgp.put_ascii_key(PUBLIC_KEY_2)
287         wrongkey = pgp.get_key(ADDRESS_2)
288         self.assertRaises(
289             errors.InvalidSignature,
290             pgp.verify, encrypted_and_signed, wrongkey)
291
292     def test_sign_verify(self):
293         pgp = openpgp.OpenPGPScheme(
294             self._soledad, gpgbinary=GPG_BINARY_PATH)
295         pgp.put_ascii_key(PRIVATE_KEY)
296         data = 'data'
297         privkey = pgp.get_key(ADDRESS, private=True)
298         signed = pgp.sign(data, privkey)
299         pubkey = pgp.get_key(ADDRESS, private=False)
300         self.assertTrue(pgp.verify(signed, pubkey))
301
302     def test_encrypt_sign_decrypt_verify(self):
303         pgp = openpgp.OpenPGPScheme(
304             self._soledad, gpgbinary=GPG_BINARY_PATH)
305         pgp.put_ascii_key(PRIVATE_KEY)
306         pubkey = pgp.get_key(ADDRESS, private=False)
307         privkey = pgp.get_key(ADDRESS, private=True)
308         pgp.put_ascii_key(PRIVATE_KEY_2)
309         pubkey2 = pgp.get_key(ADDRESS_2, private=False)
310         privkey2 = pgp.get_key(ADDRESS_2, private=True)
311         data = 'data'
312         encrypted_and_signed = pgp.encrypt(
313             data, pubkey2, sign=privkey)
314         res = pgp.decrypt(
315             encrypted_and_signed, privkey2, verify=pubkey)
316         self.assertTrue(data, res)
317
318
319 class KeyManagerKeyManagementTestCase(KeyManagerWithSoledadTestCase):
320
321     def test_get_all_keys_in_db(self):
322         km = self._key_manager()
323         km._wrapper_map[OpenPGPKey].put_ascii_key(PRIVATE_KEY)
324         # get public keys
325         keys = km.get_all_keys_in_local_db(False)
326         self.assertEqual(len(keys), 1, 'Wrong number of keys')
327         self.assertEqual(ADDRESS, keys[0].address)
328         self.assertFalse(keys[0].private)
329         # get private keys
330         keys = km.get_all_keys_in_local_db(True)
331         self.assertEqual(len(keys), 1, 'Wrong number of keys')
332         self.assertEqual(ADDRESS, keys[0].address)
333         self.assertTrue(keys[0].private)
334
335     def test_get_public_key(self):
336         km = self._key_manager()
337         km._wrapper_map[OpenPGPKey].put_ascii_key(PRIVATE_KEY)
338         # get the key
339         key = km.get_key(ADDRESS, OpenPGPKey, private=False,
340                          fetch_remote=False)
341         self.assertTrue(key is not None)
342         self.assertEqual(key.address, ADDRESS)
343         self.assertEqual(
344             key.fingerprint.lower(), KEY_FINGERPRINT.lower())
345         self.assertFalse(key.private)
346
347     def test_get_private_key(self):
348         km = self._key_manager()
349         km._wrapper_map[OpenPGPKey].put_ascii_key(PRIVATE_KEY)
350         # get the key
351         key = km.get_key(ADDRESS, OpenPGPKey, private=True,
352                          fetch_remote=False)
353         self.assertTrue(key is not None)
354         self.assertEqual(key.address, ADDRESS)
355         self.assertEqual(
356             key.fingerprint.lower(), KEY_FINGERPRINT.lower())
357         self.assertTrue(key.private)
358
359     def test_send_key_raises_key_not_found(self):
360         km = self._key_manager()
361         self.assertRaises(
362             KeyNotFound,
363             km.send_key, OpenPGPKey)
364
365     def test_send_key(self):
366         """
367         Test that request is well formed when sending keys to server.
368         """
369         km = self._key_manager()
370         km._wrapper_map[OpenPGPKey].put_ascii_key(PUBLIC_KEY)
371         km._fetcher.put = Mock()
372         # the following data will be used on the send
373         km.ca_cert_path = 'capath'
374         km.session_id = 'sessionid'
375         km.uid = 'myuid'
376         km.api_uri = 'apiuri'
377         km.api_version = 'apiver'
378         km.send_key(OpenPGPKey)
379         # setup expected args
380         data = {
381             km.PUBKEY_KEY: km.get_key(km._address, OpenPGPKey).key_data,
382         }
383         url = '%s/%s/users/%s.json' % ('apiuri', 'apiver', 'myuid')
384         km._fetcher.put.assert_called_once_with(
385             url, data=data, verify='capath',
386             cookies={'_session_id': 'sessionid'},
387         )
388
389     def test__fetch_keys_from_server(self):
390         """
391         Test that the request is well formed when fetching keys from server.
392         """
393         km = self._key_manager(url='http://nickserver.domain')
394
395         class Response(object):
396             status_code = 200
397             headers = {'content-type': 'application/json'}
398
399             def json(self):
400                 return {'address': ADDRESS_2, 'openpgp': PUBLIC_KEY_2}
401
402             def raise_for_status(self):
403                 pass
404
405         # mock the fetcher so it returns the key for ADDRESS_2
406         km._fetcher.get = Mock(
407             return_value=Response())
408         km.ca_cert_path = 'cacertpath'
409         # do the fetch
410         km._fetch_keys_from_server(ADDRESS_2)
411         # and verify the call
412         km._fetcher.get.assert_called_once_with(
413             'http://nickserver.domain',
414             data={'address': ADDRESS_2},
415             verify='cacertpath',
416         )
417
418     def test_refresh_keys_does_not_refresh_own_key(self):
419         """
420         Test that refreshing keys will not attempt to refresh our own key.
421         """
422         km = self._key_manager()
423         # we add 2 keys but we expect it to only refresh the second one.
424         km._wrapper_map[OpenPGPKey].put_ascii_key(PUBLIC_KEY)
425         km._wrapper_map[OpenPGPKey].put_ascii_key(PUBLIC_KEY_2)
426         # mock the key fetching
427         km._fetch_keys_from_server = Mock(return_value=[])
428         km.ca_cert_path = ''  # some bogus path so the km does not complain.
429         # do the refreshing
430         km.refresh_keys()
431         km._fetch_keys_from_server.assert_called_once_with(
432             ADDRESS_2
433         )
434
435     def test_get_key_fetches_from_server(self):
436         """
437         Test that getting a key successfuly fetches from server.
438         """
439         km = self._key_manager(url='http://nickserver.domain')
440
441         class Response(object):
442             status_code = 200
443             headers = {'content-type': 'application/json'}
444
445             def json(self):
446                 return {'address': ADDRESS_2, 'openpgp': PUBLIC_KEY_2}
447
448             def raise_for_status(self):
449                 pass
450
451         # mock the fetcher so it returns the key for ADDRESS_2
452         km._fetcher.get = Mock(return_value=Response())
453         km.ca_cert_path = 'cacertpath'
454         # try to key get without fetching from server
455         self.assertRaises(
456             KeyNotFound, km.get_key, ADDRESS_2, OpenPGPKey,
457             fetch_remote=False
458         )
459         # try to get key fetching from server.
460         key = km.get_key(ADDRESS_2, OpenPGPKey)
461         self.assertIsInstance(key, OpenPGPKey)
462         self.assertEqual(ADDRESS_2, key.address)
463
464
465 class KeyManagerCryptoTestCase(KeyManagerWithSoledadTestCase):
466
467     RAW_DATA = 'data'
468
469     def test_keymanager_openpgp_encrypt_decrypt(self):
470         km = self._key_manager()
471         # put raw private key
472         km._wrapper_map[OpenPGPKey].put_ascii_key(PRIVATE_KEY)
473         # get public key
474         pubkey = km.get_key(
475             ADDRESS, OpenPGPKey, private=False, fetch_remote=False)
476         # encrypt
477         encdata = km.encrypt(self.RAW_DATA, pubkey)
478         self.assertNotEqual(self.RAW_DATA, encdata)
479         # get private key
480         privkey = km.get_key(
481             ADDRESS, OpenPGPKey, private=True, fetch_remote=False)
482         # decrypt
483         rawdata = km.decrypt(encdata, privkey)
484         self.assertEqual(self.RAW_DATA, rawdata)
485
486     def test_keymanager_openpgp_sign_verify(self):
487         km = self._key_manager()
488         # put raw private keys
489         km._wrapper_map[OpenPGPKey].put_ascii_key(PRIVATE_KEY)
490         # get private key for signing
491         privkey = km.get_key(
492             ADDRESS, OpenPGPKey, private=True, fetch_remote=False)
493         # encrypt
494         signdata = km.sign(self.RAW_DATA, privkey)
495         self.assertNotEqual(self.RAW_DATA, signdata)
496         # get public key for verifying
497         pubkey = km.get_key(
498             ADDRESS, OpenPGPKey, private=False, fetch_remote=False)
499         # decrypt
500         self.assertTrue(km.verify(signdata, pubkey))
501
502
503 # Key material for testing
504
505 # key 24D18DDF: public key "Leap Test Key <leap@leap.se>"
506 KEY_FINGERPRINT = "E36E738D69173C13D709E44F2F455E2824D18DDF"
507 PUBLIC_KEY = """
508 -----BEGIN PGP PUBLIC KEY BLOCK-----
509 Version: GnuPG v1.4.10 (GNU/Linux)
510
511 mQINBFC9+dkBEADNRfwV23TWEoGc/x0wWH1P7PlXt8MnC2Z1kKaKKmfnglVrpOiz
512 iLWoiU58sfZ0L5vHkzXHXCBf6Eiy/EtUIvdiWAn+yASJ1mk5jZTBKO/WMAHD8wTO
513 zpMsFmWyg3xc4DkmFa9KQ5EVU0o/nqPeyQxNMQN7px5pPwrJtJFmPxnxm+aDkPYx
514 irDmz/4DeDNqXliazGJKw7efqBdlwTHkl9Akw2gwy178pmsKwHHEMOBOFFvX61AT
515 huKqHYmlCGSliwbrJppTG7jc1/ls3itrK+CWTg4txREkSpEVmfcASvw/ZqLbjgfs
516 d/INMwXnR9U81O8+7LT6yw/ca4ppcFoJD7/XJbkRiML6+bJ4Dakiy6i727BzV17g
517 wI1zqNvm5rAhtALKfACha6YO43aJzairO4II1wxVHvRDHZn2IuKDDephQ3Ii7/vb
518 hUOf6XCSmchkAcpKXUOvbxm1yfB1LRa64mMc2RcZxf4mW7KQkulBsdV5QG2276lv
519 U2UUy2IutXcGP5nXC+f6sJJGJeEToKJ57yiO/VWJFjKN8SvP+7AYsQSqINUuEf6H
520 T5gCPCraGMkTUTPXrREvu7NOohU78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9lzlDaeWS5AUKeXrb7ZJLI1TTCIZx5/DxjLqM
553 Tt/RFBpVo9geZQrvLUqLAMwdaUvDXC2c6DaCPXTh65oCZj/hqzlJHH+RoTWWzKI+
554 BjXxgUWF9EmZUBrg68DSmI+9wuDFsjZ51BcqvJwxyfxtTaWhdoYqH/UQS+D1FP3/
555 diZHHlzwVwPICzM9ooNTgbrcDzyxRkIVqsVwBq7EtzcvgYUyX53yG25Giy6YQaQ2
556 ZtQ/VymwFL3XdUWV6B/hU4PVAFvO3qlOtdJ6TpE+nEWgcWjCv5g7RjXX
557 =MuOY
558 -----END PGP PUBLIC KEY BLOCK-----
559 """
560 PRIVATE_KEY = """
561 -----BEGIN PGP PRIVATE KEY BLOCK-----
562 Version: GnuPG v1.4.10 (GNU/Linux)
563
564 lQcYBFC9+dkBEADNRfwV23TWEoGc/x0wWH1P7PlXt8MnC2Z1kKaKKmfnglVrpOiz
565 iLWoiU58sfZ0L5vHkzXHXCBf6Eiy/EtUIvdiWAn+yASJ1mk5jZTBKO/WMAHD8wTO
566 zpMsFmWyg3xc4DkmFa9KQ5EVU0o/nqPeyQxNMQN7px5pPwrJtJFmPxnxm+aDkPYx
567 irDmz/4DeDNqXliazGJKw7efqBdlwTHkl9Akw2gwy178pmsKwHHEMOBOFFvX61AT
568 huKqHYmlCGSliwbrJppTG7jc1/ls3itrK+CWTg4txREkSpEVmfcASvw/ZqLbjgfs
569 d/INMwXnR9U81O8+7LT6yw/ca4ppcFoJD7/XJbkRiML6+bJ4Dakiy6i727BzV17g
570 wI1zqNvm5rAhtALKfACha6YO43aJzairO4II1wxVHvRDHZn2IuKDDephQ3Ii7/vb
571 hUOf6XCSmchkAcpKXUOvbxm1yfB1LRa64mMc2RcZxf4mW7KQkulBsdV5QG2276lv
572 U2UUy2IutXcGP5nXC+f6sJJGJeEToKJ57yiO/VWJFjKN8SvP+7AYsQSqINUuEf6H
573 T5gCPCraGMkTUTPXrREvu7NOohU78q6zZNaL3GW8ai7eSeANSuQ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m
654 laBbw6ate3BmbXLh64jVE9Za5sbTWi7PCcbO/bpRy4d6oLmitmNw6cq0vjTLxUYy
655 bwuiJxWREkfxuU85EKdouN062YDevH+/YResmlJrcCE7LRlJFeRlKsrrwBU3BqYd
656 GgFJjKjQC1peeQ9fj62Y7xfwE9+PXbkiWO5u/Bk8hb1VZH1SoIRU98NHVcp6BVvp
657 VK0jLAXuSauSczULmpRjbyt1lhaAqivDTWEEZXiNNbRyp17c3nVdPWOcgBr42hdQ
658 z25CgZgyLCsvu82wuXLKJblrIPJX3Yf+si6KqEWBsmwdOWybsjygaF5HvzgFqAAD
659 U0goPWoQ71PorP2XOUNp5ZLkBQp5etvtkksjVNMIhnHn8PGMuoxO39EUGlWj2B5l
660 Cu8tSosAzB1pS8NcLZzoNoI9dOHrmgJmP+GrOUkcf5GhNZbMoj4GNfGBRYX0SZlQ
661 GuDrwNKYj73C4MWyNnnUFyq8nDHJ/G1NpaF2hiof9RBL4PUU/f92JkceXPBXA8gL
662 Mz2ig1OButwPPLFGQhWqxXAGrsS3Ny+BhTJfnfIbbkaLLphBpDZm1D9XKbAUvdd1
663 RZXoH+FTg9UAW87eqU610npOkT6cRaBxaMK/mDtGNdc=
664 =JTFu
665 -----END PGP PRIVATE KEY BLOCK-----
666 """
667
668 # key 7FEE575A: public key "anotheruser <anotheruser@leap.se>"
669 PUBLIC_KEY_2 = """
670 -----BEGIN PGP PUBLIC KEY BLOCK-----
671 Version: GnuPG v1.4.10 (GNU/Linux)
672
673 mI0EUYwJXgEEAMbTKHuPJ5/Gk34l9Z06f+0WCXTDXdte1UBoDtZ1erAbudgC4MOR
674 gquKqoj3Hhw0/ILqJ88GcOJmKK/bEoIAuKaqlzDF7UAYpOsPZZYmtRfPC2pTCnXq
675 Z1vdeqLwTbUspqXflkCkFtfhGKMq5rH8GV5a3tXZkRWZhdNwhVXZagC3ABEBAAG0
676 IWFub3RoZXJ1c2VyIDxhbm90aGVydXNlckBsZWFwLnNlPoi4BBMBAgAiBQJRjAle
677 AhsDBgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgAAKCRB/nfpof+5XWotuA/4tLN4E
678 gUr7IfLy2HkHAxzw7A4rqfMN92DIM9mZrDGaWRrOn3aVF7VU1UG7MDkHfPvp/cFw
679 ezoCw4s4IoHVc/pVlOkcHSyt4/Rfh248tYEJmFCJXGHpkK83VIKYJAithNccJ6Q4
680 JE/o06Mtf4uh/cA1HUL4a4ceqUhtpLJULLeKo7iNBFGMCV4BBADsyQI7GR0wSAxz
681 VayLjuPzgT+bjbFeymIhjuxKIEwnIKwYkovztW+4bbOcQs785k3Lp6RzvigTpQQt
682 Z/hwcLOqZbZw8t/24+D+Pq9mMP2uUvCFFqLlVvA6D3vKSQ/XNN+YB919WQ04jh63
683 yuRe94WenT1RJd6xU1aaUff4rKizuQARAQABiJ8EGAECAAkFAlGMCV4CGwwACgkQ
684 f536aH/uV1rPZQQAqCzRysOlu8ez7PuiBD4SebgRqWlxa1TF1ujzfLmuPivROZ2X
685 Kw5aQstxgGSjoB7tac49s0huh4X8XK+BtJBfU84JS8Jc2satlfwoyZ35LH6sDZck
686 I+RS/3we6zpMfHs3vvp9xgca6ZupQxivGtxlJs294TpJorx+mFFqbV17AzQ=
687 =Thdu
688 -----END PGP PUBLIC KEY BLOCK-----
689 """
690
691 PRIVATE_KEY_2 = """
692 -----BEGIN PGP PRIVATE KEY BLOCK-----
693 Version: GnuPG v1.4.10 (GNU/Linux)
694
695 lQHYBFGMCV4BBADG0yh7jyefxpN+JfWdOn/tFgl0w13bXtVAaA7WdXqwG7nYAuDD
696 kYKriqqI9x4cNPyC6ifPBnDiZiiv2xKCALimqpcwxe1AGKTrD2WWJrUXzwtqUwp1
697 6mdb3Xqi8E21LKal35ZApBbX4RijKuax/BleWt7V2ZEVmYXTcIVV2WoAtwARAQAB
698 AAP7BLuSAx7tOohnimEs74ks8l/L6dOcsFQZj2bqs4AoY3jFe7bV0tHr4llypb/8
699 H3/DYvpf6DWnCjyUS1tTnXSW8JXtx01BUKaAufSmMNg9blKV6GGHlT/Whe9uVyks
700 7XHk/+9mebVMNJ/kNlqq2k+uWqJohzC8WWLRK+d1tBeqDsECANZmzltPaqUsGV5X
701 C3zszE3tUBgptV/mKnBtopKi+VH+t7K6fudGcG+bAcZDUoH/QVde52mIIjjIdLje
702 uajJuHUCAO1mqh+vPoGv4eBLV7iBo3XrunyGXiys4a39eomhxTy3YktQanjjx+ty
703 GltAGCs5PbWGO6/IRjjvd46wh53kzvsCAO0J97gsWhzLuFnkxFAJSPk7RRlyl7lI
704 1XS/x0Og6j9XHCyY1OYkfBm0to3UlCfkgirzCYlTYObCofzdKFIPDmSqHbQhYW5v
705 dGhlcnVzZXIgPGFub3RoZXJ1c2VyQGxlYXAuc2U+iLgEEwECACIFAlGMCV4CGwMG
706 CwkIBwMCBhUIAgkKCwQWAgMBAh4BAheAAAoJEH+d+mh/7ldai24D/i0s3gSBSvsh
707 8vLYeQcDHPDsDiup8w33YMgz2ZmsMZpZGs6fdpUXtVTVQbswOQd8++n9wXB7OgLD
708 izgigdVz+lWU6RwdLK3j9F+Hbjy1gQmYUIlcYemQrzdUgpgkCK2E1xwnpDgkT+jT
709 oy1/i6H9wDUdQvhrhx6pSG2kslQst4qjnQHYBFGMCV4BBADsyQI7GR0wSAxzVayL
710 juPzgT+bjbFeymIhjuxKIEwnIKwYkovztW+4bbOcQs785k3Lp6RzvigTpQQtZ/hw
711 cLOqZbZw8t/24+D+Pq9mMP2uUvCFFqLlVvA6D3vKSQ/XNN+YB919WQ04jh63yuRe
712 94WenT1RJd6xU1aaUff4rKizuQARAQABAAP9EyElqJ3dq3EErXwwT4mMnbd1SrVC
713 rUJrNWQZL59mm5oigS00uIyR0SvusOr+UzTtd8ysRuwHy5d/LAZsbjQStaOMBILx
714 77TJveOel0a1QK0YSMF2ywZMCKvquvjli4hAtWYz/EwfuzQN3t23jc5ny+GqmqD2
715 3FUxLJosFUfLNmECAO9KhVmJi+L9dswIs+2Dkjd1eiRQzNOEVffvYkGYZyKxNiXF
716 UA5kvyZcB4iAN9sWCybE4WHZ9jd4myGB0MPDGxkCAP1RsXJbbuD6zS7BXe5gwunO
717 2q4q7ptdSl/sJYQuTe1KNP5d/uGsvlcFfsYjpsopasPjFBIncc/2QThMKlhoEaEB
718 /0mVAxpT6SrEvUbJ18z7kna24SgMPr3OnPMxPGfvNLJY/Xv/A17YfoqjmByCvsKE
719 JCDjopXtmbcrZyoEZbEht9mko4ifBBgBAgAJBQJRjAleAhsMAAoJEH+d+mh/7lda
720 z2UEAKgs0crDpbvHs+z7ogQ+Enm4EalpcWtUxdbo83y5rj4r0TmdlysOWkLLcYBk
721 o6Ae7WnOPbNIboeF/FyvgbSQX1POCUvCXNrGrZX8KMmd+Sx+rA2XJCPkUv98Hus6
722 THx7N776fcYHGumbqUMYrxrcZSbNveE6SaK8fphRam1dewM0
723 =a5gs
724 -----END PGP PRIVATE KEY BLOCK-----
725 """
726 import unittest
727 if __name__ == "__main__":
728     unittest.main()