Commit Graph

31 Commits (1fd400b5d3517e66ea81d8119cacdf06e18bcf2a)

Author SHA1 Message Date
Thomas Tanner 1fd400b5d3 more py2.6 fixes 2014-04-23 14:49:24 +02:00
Thomas Tanner 6b7fe3467d py2.6 support for testing 2014-04-23 14:06:30 +02:00
Isis Lovecruft 425d116ae0
Rewrite verification unittests to use correct parameters 2013-12-04 10:16:04 +00:00
drebs 678d36ea62 Fix path creation. 2013-10-14 17:09:09 -03:00
Isis Lovecruft 88e5bd7827
Rewrite unittest test_encryption_multi_recipient().
It's still failing. Oddly, test_encryption_decryption_multi_recipient() is not
failing...
2013-10-08 12:26:42 +00:00
Isis Lovecruft 10d7e61ee4
Delete output file created by test_copy_data_bytesio() unittest. 2013-10-08 10:27:04 +00:00
Isis Lovecruft 9f6908ffb0
Remove unused unittest.TestCase.setUpClass() method.
* REMOVE boilerplated unittest.TestCase.setUpClass() method, as it did
   nothing and was not being called anywhere.
2013-10-08 08:50:08 +00:00
Isis Lovecruft 903ffd3906
FIX unittest test_copy_data_bytesio().
* CHANGE unittest test_copy_data_bytesio() to actually check that the output
   data matches the original message string given to io.BytesIO().
 * REMOVE class test.test_gnupg.ResultStringIO, as it is now not used
   anywhere.
 * FIXES test_copy_data_bytesio() not actually testing what it was supposed
   to.
2013-10-08 08:46:19 +00:00
Isis Lovecruft 0166b4bc6a
Fix test failure due to static binary path arg in unittest.
* CHANGE unittest test_make_args_drop_protected_options() to discover the
   path to the GnuPG binary; the discovered path SHOULD be the same as that
   which was discovered upon class instantiation.
 * FIXES failure in unittest test_make_args_drop_protected_options() which was
   caused by the path to the GnuPG binary being hardcoded.
2013-10-08 08:27:22 +00:00
Isis Lovecruft 8cccef433d
Remove __package__ setting and import code in test_gnupg.py.
* FIXES bug which caused py3k tests to fail to run.
2013-07-31 22:23:30 +00:00
Isis Lovecruft 1e5c1c2311
Merge remote-tracking branch 'mmn/fixes_for_test_gpg_binary_version_str' into develop
* ADD patches from Mikael Nordfeldth.
 * FIXES #14 issues with strcmp in unittests looking for string literals when
   Python3 expects byte strings.
 * TODO: perhaps there should be a generalized function in
   gnupg/test/test_gnupg.py which automatically translates Python2 strings to
   b'' strings.
 * CLOSES issue #14.
2013-07-30 12:05:51 +00:00
Mikael Nordfeldth aa6ced5d14 stdout.read() wants bytes, which failed on Py3 str
I don't know how far back the b"byte string" syntax is compatible with this change in Python 2.x, but in 2.7.3 it works as it should.
2013-07-29 00:27:54 +02:00
Mikael Nordfeldth ce76fd130a Grammar fix, repeated word in test description 2013-07-29 00:27:45 +02:00
Mikael Nordfeldth 167d51f15e Simple indentation error fix 2013-07-28 18:17:52 +02:00
Isis Lovecruft 6b154c294e
Change LICENSE to GPLv3+, after discussion with intrigeri.
* ADD docs/change-license-emails.txt, which includes email exchanges between
   myself and intrigeri, including links to Debian and LEAP mailing lists with
   arguments for and against using AGPL for a library.
 * CHANGE license header for all files.
 * CHANGE LICENSE file and gnupg/copyright.py to use GPLv3+ text.
2013-07-27 19:27:53 +00:00
Mikael Nordfeldth f80f216625 mktime takes local time, not UTC
GPG signature timestamps are considered UTC, this may cause times to be off
by delta > 1000 in def test_signature_string_verification because it
incorrectly gave gmtime() as an argument to mktime().

Python 2 and 3 docs both say that mktime should have a struct_time argument
"which expresses the time in local time, not UTC". So the test is now using
time.localtime() instead of time.gmtime()
2013-07-24 17:28:18 +02:00
Isis Lovecruft 78af852d25
Fix putting keys generated during unittests into tests/generated-keys/. 2013-07-09 08:16:27 +00:00
Isis Lovecruft fca8491ceb
Remove two unused inspect module imports from gnupg.py. 2013-07-06 09:01:21 +00:00
Isis Lovecruft d199a7512e
Start Pythonising the Makefile test cleanup actions. 2013-07-02 09:36:48 +00:00
Isis Lovecruft 1a38d786a3
Fix unittest import_with_colons to use key dict. 2013-07-02 09:14:56 +00:00
Isis Lovecruft b3decd7b73
Add imports specific to running unittests after an installation. 2013-07-02 09:13:58 +00:00
Isis Lovecruft ab54c7b71e
Make detached binary sig unittest test what it's supposed to. 2013-07-02 07:17:51 +00:00
Isis Lovecruft 0ca6352457
Add check on recv-key size after writing it to a file. 2013-07-02 07:15:31 +00:00
Isis Lovecruft db4826f815
Fix an error in a unittest due to attempt to write class obj, not str form. 2013-07-02 07:14:48 +00:00
Isis Lovecruft ea8c2c5e1f
Ugh. Change the unittest paths again. 2013-07-02 07:14:21 +00:00
Isis Lovecruft e8062c95aa
Fix variable names in unittest: pubring→keyring. 2013-07-02 00:55:53 +00:00
Isis Lovecruft e18e10edd1
Add a debug statement to a unittest when we've downloaded a key. 2013-07-02 00:55:26 +00:00
Isis Lovecruft 3b7457ae74
Remove a print statement from a unittest. 2013-07-02 00:43:54 +00:00
Isis Lovecruft 6cf7640c5c
Fix whitespace formatting for a line in gnupg/tests/test_gnupg.py. 2013-07-02 00:43:12 +00:00
Isis Lovecruft 12b1de719a
Update paths in unittests to disregard the installed directory. 2013-07-02 00:42:17 +00:00
Isis Lovecruft d7a0ffb395
Move tests/* → gnupg/test/* 2013-06-28 13:13:27 +00:00