diff options
| author | Barry Warsaw | 2016-11-28 17:19:18 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2016-11-28 20:31:09 -0500 |
| commit | da0789ceedbeddcae6b47545c115f5e659de019d (patch) | |
| tree | 1d7cbea5e0895c935f9905c852cd332a000b4e8a /src/mailman/rules/tests/test_suspicious.py | |
| parent | 8ee8a7d2cb598138aeadfebe8eb5cc3f8fb2d88a (diff) | |
| download | mailman-da0789ceedbeddcae6b47545c115f5e659de019d.tar.gz mailman-da0789ceedbeddcae6b47545c115f5e659de019d.tar.zst mailman-da0789ceedbeddcae6b47545c115f5e659de019d.zip | |
Diffstat (limited to 'src/mailman/rules/tests/test_suspicious.py')
| -rw-r--r-- | src/mailman/rules/tests/test_suspicious.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mailman/rules/tests/test_suspicious.py b/src/mailman/rules/tests/test_suspicious.py index e1649928c..441fb0b48 100644 --- a/src/mailman/rules/tests/test_suspicious.py +++ b/src/mailman/rules/tests/test_suspicious.py @@ -1,4 +1,4 @@ -# Copyright (C) 2015 by the Free Software Foundation, Inc. +# Copyright (C) 2016 by the Free Software Foundation, Inc. # # This file is part of GNU Mailman. # @@ -28,7 +28,7 @@ from mailman.testing.layers import ConfigLayer class TestSuspicious(unittest.TestCase): - """Test the suspicous rule.""" + """Test the suspicious rule.""" layer = ConfigLayer @@ -37,9 +37,8 @@ class TestSuspicious(unittest.TestCase): self._rule = suspicious.SuspiciousHeader() def test_header_instance(self): - # Check the case where the subject is a Header instance msg = Message() - msg["From"] = Header("user@example.com") + msg['From'] = Header('user@example.com') self._mlist.bounce_matching_headers = 'from: spam@example.com' result = self._rule.check(self._mlist, msg, {}) self.assertFalse(result) |
