From: jlgijsbers Date: Sun, 7 Sep 2003 18:27:47 +0000 (+0000) Subject: Simplify Message comparison. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=dc251d52e45b081b8a6a908e73234623bdfe694f;p=roundup.git Simplify Message comparison. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1863 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/test/test_mailgw.py b/test/test_mailgw.py index 43d9fa7..2fce57d 100644 --- a/test/test_mailgw.py +++ b/test/test_mailgw.py @@ -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 @@ class Message(rfc822.Message): 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.