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():