1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-25 01:06:50 +00:00

Improved keychain tests

This commit is contained in:
Jonas Borgström 2010-11-02 20:59:57 +01:00
parent bee4c86719
commit 9f6d2284c3

View file

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