From 9f6d2284c38ed16145322cde4b817061a09778b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Borgstr=C3=B6m?= Date: Tue, 2 Nov 2010 20:59:57 +0100 Subject: [PATCH] Improved keychain tests --- darc/test.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/darc/test.py b/darc/test.py index d59d5a466..ffd36e168 100644 --- a/darc/test.py +++ b/darc/test.py @@ -7,6 +7,9 @@ import unittest from xattr import xattr, XATTR_NOFOLLOW +import getpass +getpass.getpass = lambda m: 'abc123' + from . import store from .archiver import Archiver @@ -105,7 +108,10 @@ def test_corrupted_store(self): def test_keychain(self): keychain = os.path.join(self.tmpdir, 'keychain') + keychain2 = os.path.join(self.tmpdir, 'keychain2') self.darc('-k', keychain, 'init-keychain') + self.darc('-k', keychain, 'change-password') + self.darc('-k', keychain, 'export-restricted', keychain2) def suite():