Unverified Commit 6ce901df authored by Isis Lovecruft's avatar Isis Lovecruft
Browse files

Add unittest for checkDKIM() with `X-DKIM-Authentication-Results: dunno`.

 * ADD new unittest test_checkDKIM_dunno() to test_email_dkim.py which checks
   that a ``X-DKIM-Authentication-Results: dunno`` header properly returns
parent 7d7606a9
...@@ -62,3 +62,14 @@ get bridges ...@@ -62,3 +62,14 @@ get bridges
result = dkim.checkDKIM(message, result = dkim.checkDKIM(message,
self.domainRules.get("gmail.com")) self.domainRules.get("gmail.com"))
self.assertIs(result, False) self.assertIs(result, False)
def test_checkDKIM_dunno(self):
"""A ``X-DKIM-Authentication-Results: dunno`` header should return
messageList = self.badMessage.split('\n')
messageList[2] = "X-DKIM-Authentication-Results: dunno"
message = self._createMessage('\n'.join(messageList))
result = dkim.checkDKIM(message,
self.assertIs(result, False)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment