Update test_gnupg.py unittests to reflect changes in the code.

feature/documentation-builds-dirhtml
Isis Lovecruft 2013-03-16 02:09:48 +00:00 committed by Isis Lovecruft
parent b776247176
commit d8264a619b
1 changed files with 2 additions and 2 deletions

View File

@ -362,7 +362,7 @@ class GPGTestCase(unittest.TestCase):
def test_nogpg(self):
"Test that absence of gpg is handled correctly"
self.assertRaises(ValueError, gnupg.GPG, gpghome=self.homedir,
self.assertRaises(RuntimeError, gnupg.GPG, gpghome=self.homedir,
gpgbinary='frob')
def test_make_args(self):
@ -370,7 +370,7 @@ class GPGTestCase(unittest.TestCase):
self.gpg.options = ['--foo', '--bar']
args = self.gpg.make_args(['a', 'b'], False)
self.assertTrue(len(args) > 4)
self.assertEqual(args[-4:], ['--foo', '--bar', 'a', 'b'])
self.assertEqual(args[3:], ['--foo', '--bar', 'a', 'b'])
def test_file_encryption_and_decryption(self):
"Test that encryption/decryption to/from file works"