From 40c2980b58e8408ac4daf5a86b44daf3fc9c591c Mon Sep 17 00:00:00 2001 From: "Stuart D. Gathman" Date: Fri, 17 Jun 2011 11:40:40 -0400 Subject: [PATCH] Fix test case for bug #737311 --- dkim/tests/test_dkim.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dkim/tests/test_dkim.py b/dkim/tests/test_dkim.py index 2e291ad..bfd108d 100644 --- a/dkim/tests/test_dkim.py +++ b/dkim/tests/test_dkim.py @@ -132,16 +132,21 @@ b/mPfjC0QJTocVBq6Za/PlzfV+Py92VaCak19F4WrbVTK5Gg5tW220MCAwEAAQ==""" def test_extra_headers(self): # - # It works when you remove extra headers above From + # extra headers above From caused failure message = read_test_data("message.mbox") for header_algo in (b"simple", b"relaxed"): for body_algo in (b"simple", b"relaxed"): sig = dkim.sign( - self.message, b"test", b"example.com", self.key, + message, b"test", b"example.com", self.key, canonicalize=(header_algo, body_algo)) res = dkim.verify(sig + self.message, dnsfunc=self.dnsfunc) self.assertTrue(res) + def test_multiple_from(self): + # + # additional From header fields should cause verify failure + pass + def test_suite(): from unittest import TestLoader return TestLoader().loadTestsFromName(__name__)