Update test data and test harness for test_verify_third_party - now it passes
This commit is contained in:
@@ -1,11 +1,14 @@
|
|||||||
DKIM-Signature: v=1; a=ed25519-sha256; q=dns/txt; c=relaxed/relaxed; d=test.ex
|
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=;
|
; s=sed; h=From:To:Subject; bh=/Ab0giHZitYQbDhFszoqQRUkgqueaX9zatJttIU/plc=;
|
||||||
b=5fhyD3EILDrnL4DnkD4hDaeis7+GSzL9GMHrhIDZJjuJ00WD5iI8SQ1q9rDfzFL/Kdw0VIyB4R
|
b=5fhyD3EILDrnL4DnkD4hDaeis7+GSzL9GMHrhIDZJjuJ00WD5iI8SQ1q9rDfzFL/Kdw0VIyB4R
|
||||||
Dq0a4H6HI+Bw==;
|
Dq0a4H6HI+Bw==;
|
||||||
Received: from jgh by myhost.test.ex with local (Exim x.yz)
|
Received: from jgh by myhost.test.ex with local (Exim x.yz)
|
||||||
envelope-from <jgh@myhost.test.ex>)
|
envelope-from <jgh@myhost.test.ex>)
|
||||||
1dtXln-0000YP-Hb
|
1dtXln-0000YP-Hb
|
||||||
a@test.ex; Sun, 17 Sep 2017 12:29:51 +0100
|
a@test.ex; Sun, 17 Sep 2017 12:29:51 +0100
|
||||||
From: nobody@example.com
|
From: nobody@example.com
|
||||||
|
Message-Id: <E1dtXln-0000YP-Hb@myhost.test.ex>
|
||||||
|
Sender: CALLER_NAME <jgh@myhost.test.ex>
|
||||||
|
Date: Sun, 17 Sep 2017 12:29:51 +0100
|
||||||
|
|
||||||
content
|
content
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ p=yi50DjK5O9pqbFpNHklsv9lqaS0ArSYu02qp1S0DW1Y=""",
|
|||||||
|
|
||||||
def test_verify_third_party(self):
|
def test_verify_third_party(self):
|
||||||
# Message signed by prototype Exim implementation
|
# Message signed by prototype Exim implementation
|
||||||
res = dkim.verify(self.message2)
|
res = dkim.verify(self.message2, dnsfunc=self.dnsfunc)
|
||||||
self.assertTrue(res)
|
self.assertTrue(res)
|
||||||
|
|
||||||
def test_add_body_length(self):
|
def test_add_body_length(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user