summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-04-12 15:17:13 +0100
committerLars Wirzenius <liw@liw.fi>2011-04-12 15:17:13 +0100
commit1f6b760f36eef123f82d9ff7c439f5b6701b246a (patch)
tree565113f0c78e87a14424d8d0759e81c120c2dc88
parent9e850086949bd77aa3ac0579693095f253806e2f (diff)
downloadobnam-1f6b760f36eef123f82d9ff7c439f5b6701b246a.tar.gz
Fix test to work with the new keypair in test keyring.
-rw-r--r--obnamlib/encryption_tests.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/obnamlib/encryption_tests.py b/obnamlib/encryption_tests.py
index ece3a13b..d9b34cf9 100644
--- a/obnamlib/encryption_tests.py
+++ b/obnamlib/encryption_tests.py
@@ -133,9 +133,10 @@ uWUO7gMi+AlnxbfXVCTEgw3xhg==
class SecretKeyringTests(unittest.TestCase):
def test_lists_correct_key(self):
- keyid = '3B1802F81B321347'
+ keyid1 = '3B1802F81B321347'
+ keyid2 = 'DF3D13AA11E69900'
seckeys = obnamlib.SecretKeyring(cat('test-gpghome/secring.gpg'))
- self.assertEqual(seckeys.keyids(), [keyid])
+ self.assertEqual(sorted(seckeys.keyids()), sorted([keyid1, keyid2]))
class PublicKeyEncryptionTests(unittest.TestCase):