diff options
| author | Barry Warsaw | 2011-08-23 20:37:35 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2011-08-23 20:37:35 -0400 |
| commit | 043562c695387a12e655997abf41cef77cb3d3a4 (patch) | |
| tree | 357d5795ded778a70efa984a2ac1ee864f132a9e /src/mailman/chains/tests/test_hold.py | |
| parent | 688d222e7af971ef75383703be0bf4fdf12661ce (diff) | |
| download | mailman-043562c695387a12e655997abf41cef77cb3d3a4.tar.gz mailman-043562c695387a12e655997abf41cef77cb3d3a4.tar.zst mailman-043562c695387a12e655997abf41cef77cb3d3a4.zip | |
Diffstat (limited to 'src/mailman/chains/tests/test_hold.py')
| -rw-r--r-- | src/mailman/chains/tests/test_hold.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mailman/chains/tests/test_hold.py b/src/mailman/chains/tests/test_hold.py index 3e9f66084..b3e9815d5 100644 --- a/src/mailman/chains/tests/test_hold.py +++ b/src/mailman/chains/tests/test_hold.py @@ -46,6 +46,10 @@ class TestAutorespond(unittest.TestCase): def setUp(self): self._mlist = create_list('test@example.com') + # Python 2.7 has assertMultiLineEqual + self.maxDiff = None + self.eq = getattr(self, 'assertMultiLineEqual', + getattr(self, 'assertEqual')) def test_max_autoresponses_per_day(self): # The last one we sent was the last one we should send today. Instead @@ -73,7 +77,7 @@ class TestAutorespond(unittest.TestCase): del message['message-id'] self.assertTrue('date' in message) del message['date'] - self.assertEqual(messages[0].msg.as_string(), """\ + self.eq(messages[0].msg.as_string(), """\ MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
