changeset 1796:4de2e611b6f3

Simplify Message comparison.
author Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
date Sun, 07 Sep 2003 18:27:47 +0000
parents 08b013acfec8
children c1eec970d5c0
files test/test_mailgw.py
diffstat 1 files changed, 2 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/test/test_mailgw.py	Sun Sep 07 13:08:08 2003 +0000
+++ b/test/test_mailgw.py	Sun Sep 07 18:27:47 2003 +0000
@@ -8,7 +8,7 @@
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 #
-# $Id: test_mailgw.py,v 1.49 2003-09-07 13:08:08 jlgijsbers Exp $
+# $Id: test_mailgw.py,v 1.50 2003-09-07 18:27:47 jlgijsbers Exp $
 
 import unittest, tempfile, os, shutil, errno, imp, sys, difflib, rfc822
 
@@ -25,13 +25,7 @@
     def __eq__(self, other):
         del self['date'], other['date']
 
-        self.headers.sort()
-        other.headers.sort()
-
-        self.rewindbody()
-        other.rewindbody()
-
-        return (self.headers == other.headers and
+        return (self.dict == other.dict and
                 self.fp.read() == other.fp.read()) 
 
 # TODO: Do a semantic diff instead of a straight text diff when a test fails.

Roundup Issue Tracker: http://roundup-tracker.org/