Exemplo n.º 1
0
 def test_auth_returns_false_for_message_with_invalid_dkim_signature(self):
     dkim_auth = DKIMAuth()
     self.assertFalse(dkim_auth.auth(self.invalid_dkim_eml, '0.0.0.0'))
Exemplo n.º 2
0
 def test_auth_returns_true_for_message_with_valid_dkim_signature(self):
     dkim_auth = DKIMAuth()
     self.assertTrue(dkim_auth.auth(self.valid_dkim_eml, '0.0.0.0'))