summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8edb4e8)
raw | patch | inline | side by side (parent: 8edb4e8)
author | jlgijsbers <jlgijsbers@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sun, 7 Sep 2003 18:27:47 +0000 (18:27 +0000) | ||
committer | jlgijsbers <jlgijsbers@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sun, 7 Sep 2003 18:27:47 +0000 (18:27 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1863 57a73879-2fb5-44c3-a270-3262357dd7e2
test/test_mailgw.py | patch | blob | history |
diff --git a/test/test_mailgw.py b/test/test_mailgw.py
index 43d9fa772fc4243d08462f566c229acb77cf423d..2fce57d68ea4d083c7df004544e72679905d5034 100644 (file)
--- a/test/test_mailgw.py
+++ b/test/test_mailgw.py
# 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
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.