Commit Graph

44 Commits

Author SHA1 Message Date
Stuart D. Gathman 4f77e32ec7 Update Changelog, put back large message from field for extra headers
test case.  Keep simplified message also in case further debugging is needed.
2011-06-17 18:55:52 -04:00
Stuart D. Gathman 93c61d2737 Simplify extra header test. 2011-06-17 17:40:24 -04:00
Stuart D. Gathman 2458f3824c Really fix test case for bug#737311 2011-06-17 14:28:07 -04:00
Stuart D. Gathman 21c9810c3f Reenabling failing fold test case. Must fix for 0.5 2011-06-17 12:22:38 -04:00
Stuart D. Gathman 85dbc4f645 Test case for bug#644046 2011-06-17 12:17:05 -04:00
Stuart D. Gathman 40c2980b58 Fix test case for bug #737311 2011-06-17 11:40:40 -04:00
Stuart D. Gathman dbeeacdd46 Test case for https://bugs.launchpad.net/pydkim/+bug/737311 2011-06-17 11:26:53 -04:00
Stuart D. Gathman 9e3ec3665d Integrate new tests into existing test suite in dkim.tests 2011-06-16 23:38:14 -04:00
William Grant e9d01800de Canonicalizationpolicy.from_c_value() now raise InvalidCanonicalizationPolicyErrors instead of logging and returning None. 2011-06-04 15:51:14 +10:00
William Grant 6b4b98478b Add CanonicalizationPolicy.to_c_value(). 2011-06-04 14:37:07 +10:00
William Grant 206c860890 Pull c= value parsing out into Canonicalizationpolicy.from_c_value. 2011-06-04 14:30:19 +10:00
William Grant 19b554212e Quick fix to make end-to-end tests verify all canonicalization cases. Tests for bug #587783. 2011-06-04 13:46:57 +10:00
William Grant 5f949337d1 Handle Unicode in get_txt. 2011-06-03 22:24:21 +10:00
William Grant a1fc55bcaa Rewrite tests to use an assertCanonicalForm helper. 2011-06-03 21:25:20 +10:00
William Grant 589853aee5 Split out dkim.canonicalization, and test it. Note that test_wsp_strips_headers is correctly failing, as trailing whitespace is not stripped from header names. 2011-06-03 21:16:31 +10:00
William Grant f4875a8768 Don't crash when asked to verify a badly encoded domain or selector. 2011-06-02 23:07:01 +10:00
William Grant 30bf1bc171 Fix DeprecationWarnings in tests. 2011-06-02 19:12:49 +10:00
William Grant d9e3b49a8e Make encodings all ascii/utf-8 as appropriate. 2011-03-19 22:44:46 +11:00
William Grant bc78c7d1d0 python2.6 doesn't have assertRaisesRegexp. 2011-03-19 21:25:00 +11:00
William Grant ed9bc94fa2 Fix test_dkim's mock dnstxt to do unicode. 2011-03-19 21:24:22 +11:00
William Grant e176c8fd4b Bytesify test_dkim. 2011-03-19 20:08:31 +11:00
William Grant df47a7d88e And fix test_crypto to pass. 2011-03-19 19:13:48 +11:00
William Grant be1368f374 Make str2int/int2str work with bytes. 2011-03-19 18:52:35 +11:00
William Grant 9af52236fc parse_tag_value now deals with bytes. 2011-03-19 18:47:51 +11:00
William Grant 88915e3a01 Fix some test_crypto literals to be byteses. 2011-03-19 18:45:04 +11:00
William Grant dcf0580406 Open data files as binary for now. 2011-03-19 18:44:49 +11:00
William Grant e0fca7e613 Stop using deprecated map(). 2011-03-19 18:36:00 +11:00
William Grant d5ffbac38a EMSA_PKCS1_v_1_5_encode now works out the hash ID itself. 2011-03-19 17:14:14 +11:00
William Grant fab1be9f2d Comment key data. 2011-03-19 16:48:09 +11:00
William Grant 152458defe Test RSASSA. 2011-03-19 16:39:57 +11:00
William Grant 2ee087da01 Extract parse_pem_private_key, and test it and parse_public_key. 2011-03-19 16:23:48 +11:00
William Grant d79c856ef0 RSA tests. 2011-03-19 15:03:53 +11:00
William Grant bcbf8feacf Add int2str/str2int tests. 2011-03-17 22:47:50 +11:00
William Grant 916d61bdff Add EMSA-PKCS1-v1_5-ENCODE tests. One fails because we don't require at least 8 bytes of padding. 2011-03-17 22:39:45 +11:00
William Grant f1c9fe1911 Move dkim.util tests into test_util. 2011-03-16 23:20:52 +11:00
William Grant 9aea8985fb Support multiple test modules. 2011-03-16 23:03:52 +11:00
William Grant c19043d70f Use a better, tested Tag=Value parser. 2011-03-12 12:28:39 +11:00
William Grant e74405d27a Raise more descriptive exceptions, DuplicateTag and InvalidTagSpec. 2011-03-12 12:24:55 +11:00
William Grant f9c2c2dcd9 Add license header to test_dkim. 2011-03-10 09:32:15 +11:00
William Grant 42a463cc23 Test that whitespace around tags and values is stripped. 2011-03-09 22:50:08 +11:00
William Grant f8fb2d952d Fail if there is a duplicate tag. 2011-03-09 22:48:34 +11:00
William Grant 98c72db3b1 Add a (hopefully correct) Tag=Value list parser, with tests. 2011-03-09 22:46:17 +11:00
William Grant 58525fbbd7 Add basic end-to-end signing and verification tests. 2011-03-09 20:10:18 +11:00
William Grant 508ad7ceec Add a couple of tests for fold(). One disabled, because the function is broken. 2011-03-09 18:47:11 +11:00