Commit Graph

55 Commits (f11ea6901cdd0a01ac713c23f8635c9e86a3fa7d)

Author SHA1 Message Date
Isis Lovecruft a37557c000
Change the sets of unittests to use the combined sig test. 2013-06-09 11:22:42 +00:00
Isis Lovecruft 5e47dd7351
Use one of our test_key files for a sig test to save entropy. 2013-06-09 08:24:46 +00:00
Isis Lovecruft c7f648e2a8
Combine sig encoding and algorithm tests into string test to save entropy. 2013-06-09 08:24:21 +00:00
Isis Lovecruft 59de070468 Write the recv key to a file for later tests to use to save entropy. 2013-06-09 08:14:05 +00:00
Isis Lovecruft 61c9a8818d Rename a unittest to test what it actually tests. 2013-06-09 08:12:46 +00:00
Isis Lovecruft ab00cd69e4
Import with from the future. 2013-06-09 08:11:33 +00:00
Isis Lovecruft 9f6a0a08fb
Use separate keyrings during multi recipient test to avoid overwrites. 2013-06-09 08:09:34 +00:00
Isis Lovecruft 762f750db0
Should be TestCase.assertEquals to test equality, not equivalence. 2013-06-09 08:07:00 +00:00
Isis Lovecruft d75800a7e0
Add tests package __init__.py. 2013-06-03 21:35:23 +00:00
Isis Lovecruft e9498e91a9
Fix assertions and add extra assertions to multi-recipient encryption test. 2013-06-03 12:04:32 +00:00
Isis Lovecruft 2825efcda5
Add a unittest for GPG.recv-keys(). 2013-06-03 11:59:37 +00:00
Isis Lovecruft 3233cba6bb
Add a test for semicolon escapes in inputs. 2013-06-03 11:58:02 +00:00
Isis Lovecruft d81fee0912
Remove the log.warn line that printed dividers between unittest runs. 2013-06-03 11:56:47 +00:00
Isis Lovecruft aa1247f431
Fix __package__ attr and imports according to PEP366 for submodules. 2013-06-03 11:55:45 +00:00
Isis Lovecruft 8d1e8c71ce
Only import the things we need in test_gnupg.py. 2013-05-29 13:14:13 +00:00
Isis Lovecruft 780360ea9f
Add missing test keyring file. 2013-05-24 19:32:33 +00:00
Isis Lovecruft a34084c332
Use py3k syntax for relative imports in test/test_gnupg.py. 2013-05-24 07:24:04 +00:00
Isis Lovecruft 0d1358ee94
Add headers to tests/test_gnupg.py. 2013-05-20 09:30:20 +00:00
Isis Lovecruft 87ced52f85
GPG.encoding → GPG._encoding 2013-05-28 08:48:36 +00:00
Isis Lovecruft f1d5622a13
Add placeholder for tests/doctests/ and add to .gitignore. 2013-05-28 08:26:46 +00:00
Isis Lovecruft 73cfafbbdf
Remove a pdb tracepoint now that all the unittests pass. :) 2013-05-27 09:35:06 +00:00
Isis Lovecruft 613f59eeff
test_decryption_multi_recipient→test_encryption_decryption_multi_recipient 2013-05-27 09:33:52 +00:00
Isis Lovecruft 87536c194e
Rewrite unittest for file encryption and decryption. 2013-05-27 09:33:24 +00:00
Isis Lovecruft fa57bc6158
Change unittest for symmetric encryption to include correct boolean options. 2013-05-27 09:30:05 +00:00
Isis Lovecruft 690b0efc76
Rewrite unittest for encryption/decryption to multi recipients. 2013-05-27 09:28:18 +00:00
Isis Lovecruft c1fb532c53
Change unittest, recipients doesn't need to be list, and data should be string. 2013-05-27 09:25:34 +00:00
Isis Lovecruft 622544ef13
Rewrite test_encryption_multi_recipient to also test separate keyrings option. 2013-05-27 09:23:32 +00:00
Isis Lovecruft 348c5b59fb
If setting Key-Length, also set Subkey-Length, else GnuPG defaults to 1024. 2013-05-27 09:20:51 +00:00
Isis Lovecruft 70ceb50744
Fix a unittest so that the data returned is a human readable string. 2013-05-27 09:18:13 +00:00
Isis Lovecruft c4ab6bd5d6
Change unittest, recipients don't need to be lists/tuples. 2013-05-27 09:17:27 +00:00
Isis Lovecruft 2c577466c3
Add two helpful debug statements, remove two superfluous asserts from unittest. 2013-05-27 09:14:38 +00:00
Isis Lovecruft a9ea5a1e48
Change unittest because recipients don't needs to be lists/tuples anymore. 2013-05-27 09:13:55 +00:00
Isis Lovecruft dad755ec3a
Awkwardly, fingerprints need to always be strings. Change unittests to do so. 2013-05-27 09:13:04 +00:00
Isis Lovecruft 611184f242
Add '--no-options' to unittest on _make_options() output. 2013-05-27 09:09:32 +00:00
Isis Lovecruft de36fe52d1
Change varable name keyid→default_key. 2013-05-27 08:20:27 +00:00
Isis Lovecruft 10014d5401
Rewrite multi-recipient encryption test 2013-05-22 17:25:57 +00:00
Isis Lovecruft 345ca75e85
Minor fixes to encryption with iso-8859-1 encodings test. 2013-05-22 17:25:21 +00:00
Isis Lovecruft ba37ce083d
Explicitly set the passphrase on one of the unittest keys. 2013-05-22 17:23:18 +00:00
Isis Lovecruft 3780a6bed2
More whitespace/style fixes. 2013-05-22 17:22:30 +00:00
Isis Lovecruft fba19da0a0
Use the setting in GPGTestCase.__init__() for insecure PRNG. 2013-05-22 17:20:55 +00:00
Isis Lovecruft 8cdc85aa0e
Add some point the order of these two args was switch, so test should match. 2013-05-22 17:18:58 +00:00
Isis Lovecruft e563faa344
Add print() in unittest for the binary location to be sure PATH hack works. 2013-05-22 17:17:02 +00:00
Isis Lovecruft c577fdcfe5
Add unittests for codec translator utilities. 2013-05-22 17:12:27 +00:00
Isis Lovecruft 60d6f676e5
util→_util & parsers→_parsers 2013-05-22 17:01:36 +00:00
Isis Lovecruft 18f0e97134
Remove extra whitespace 2013-05-22 16:58:47 +00:00
Isis Lovecruft e6538d6ca3
Change keyring/secring attrs to be based on settings in tests 2013-05-22 16:57:41 +00:00
Isis Lovecruft 2d19b7d771
Add a way to save generated test keys for later debugging 2013-05-22 16:54:56 +00:00
Isis Lovecruft 9b6f823a6e
Whitespace fixes 2013-05-22 16:53:18 +00:00
Isis Lovecruft a3ac1efb94
Use the log object from _util in test handler. 2013-05-22 16:52:35 +00:00
Isis Lovecruft c36687f45a
util→_util & parsers→_parsers 2013-05-22 16:51:33 +00:00