summaryrefslogtreecommitdiff
path: root/src/mailman/chains/tests/test_hold.py
diff options
context:
space:
mode:
authorBarry Warsaw2012-11-04 15:49:08 -0500
committerBarry Warsaw2012-11-04 15:49:08 -0500
commit89f6e779db51478ea95b71f2ad3dc9d7f5f51e05 (patch)
treee1054919eb00e3abf73b4387277c4c79aca52b64 /src/mailman/chains/tests/test_hold.py
parent23fca2302ea2a8c5bad0a7aa450ea210ace7cf27 (diff)
downloadmailman-89f6e779db51478ea95b71f2ad3dc9d7f5f51e05.tar.gz
mailman-89f6e779db51478ea95b71f2ad3dc9d7f5f51e05.tar.zst
mailman-89f6e779db51478ea95b71f2ad3dc9d7f5f51e05.zip
Diffstat (limited to 'src/mailman/chains/tests/test_hold.py')
-rw-r--r--src/mailman/chains/tests/test_hold.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mailman/chains/tests/test_hold.py b/src/mailman/chains/tests/test_hold.py
index 515894505..66f43fa60 100644
--- a/src/mailman/chains/tests/test_hold.py
+++ b/src/mailman/chains/tests/test_hold.py
@@ -44,9 +44,8 @@ class TestAutorespond(unittest.TestCase):
def setUp(self):
self._mlist = create_list('test@example.com')
- # Python 2.7 has assertMultiLineEqual. Let this work without bounds.
+ # Let assertMultiLineEqual work without bounds.
self.maxDiff = None
- self.eq = getattr(self, 'assertMultiLineEqual', self.assertEqual)
@configuration('mta', max_autoresponses_per_day=1)
def test_max_autoresponses_per_day(self):
@@ -71,7 +70,7 @@ class TestAutorespond(unittest.TestCase):
del message['message-id']
self.assertTrue('date' in message)
del message['date']
- self.eq(messages[0].msg.as_string(), """\
+ self.assertMultiLineEqual(messages[0].msg.as_string(), """\
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit