From 6bbbdf9b22397678e6e6002159da6e12d9f0f628 Mon Sep 17 00:00:00 2001 From: Scott Kitterman Date: Mon, 5 Feb 2018 13:43:19 -0500 Subject: [PATCH] Update test data and test harness for test_verify_third_party - now it passes --- dkim/tests/data/ed25519test2.msg | 25 ++++++++++++++----------- dkim/tests/test_dkim_ed25519.py | 2 +- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/dkim/tests/data/ed25519test2.msg b/dkim/tests/data/ed25519test2.msg index fcbc490..0904120 100644 --- a/dkim/tests/data/ed25519test2.msg +++ b/dkim/tests/data/ed25519test2.msg @@ -1,11 +1,14 @@ -DKIM-Signature: v=1; a=ed25519-sha256; q=dns/txt; c=relaxed/relaxed; d=test.ex - ; s=sed; h=From:To:Subject; bh=/Ab0giHZitYQbDhFszoqQRUkgqueaX9zatJttIU/plc=; - b=5fhyD3EILDrnL4DnkD4hDaeis7+GSzL9GMHrhIDZJjuJ00WD5iI8SQ1q9rDfzFL/Kdw0VIyB4R - Dq0a4H6HI+Bw==; -Received: from jgh by myhost.test.ex with local (Exim x.yz) - envelope-from ) - 1dtXln-0000YP-Hb - a@test.ex; Sun, 17 Sep 2017 12:29:51 +0100 -From: nobody@example.com - -content +DKIM-Signature: v=1; a=ed25519-sha256; q=dns/txt; c=relaxed/relaxed; d=test.ex + ; s=sed; h=From:To:Subject; bh=/Ab0giHZitYQbDhFszoqQRUkgqueaX9zatJttIU/plc=; + b=5fhyD3EILDrnL4DnkD4hDaeis7+GSzL9GMHrhIDZJjuJ00WD5iI8SQ1q9rDfzFL/Kdw0VIyB4R + Dq0a4H6HI+Bw==; +Received: from jgh by myhost.test.ex with local (Exim x.yz) + envelope-from ) + 1dtXln-0000YP-Hb + a@test.ex; Sun, 17 Sep 2017 12:29:51 +0100 +From: nobody@example.com +Message-Id: +Sender: CALLER_NAME +Date: Sun, 17 Sep 2017 12:29:51 +0100 + +content diff --git a/dkim/tests/test_dkim_ed25519.py b/dkim/tests/test_dkim_ed25519.py index f9268cb..6c95570 100644 --- a/dkim/tests/test_dkim_ed25519.py +++ b/dkim/tests/test_dkim_ed25519.py @@ -100,7 +100,7 @@ p=yi50DjK5O9pqbFpNHklsv9lqaS0ArSYu02qp1S0DW1Y=""", def test_verify_third_party(self): # Message signed by prototype Exim implementation - res = dkim.verify(self.message2) + res = dkim.verify(self.message2, dnsfunc=self.dnsfunc) self.assertTrue(res) def test_add_body_length(self):