comparison test/test_mailgw.py @ 3946:be72bc5ab6ee

add missing newline to a test-case.
author Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
date Wed, 14 Nov 2007 16:19:41 +0000
parents 1dd64778bc45
children 85e52526a791
comparison
equal deleted inserted replaced
3945:1dd64778bc45 3946:be72bc5ab6ee
6 # 6 #
7 # This module is distributed in the hope that it will be useful, 7 # This module is distributed in the hope that it will be useful,
8 # but WITHOUT ANY WARRANTY; without even the implied warranty of 8 # but WITHOUT ANY WARRANTY; without even the implied warranty of
9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 # 10 #
11 # $Id: test_mailgw.py,v 1.91 2007-11-14 14:57:47 schlatterbeck Exp $ 11 # $Id: test_mailgw.py,v 1.92 2007-11-14 16:19:41 schlatterbeck Exp $
12 12
13 # TODO: test bcc 13 # TODO: test bcc
14 14
15 import unittest, tempfile, os, shutil, errno, imp, sys, difflib, rfc822, time 15 import unittest, tempfile, os, shutil, errno, imp, sys, difflib, rfc822, time
16 16
1168 ''') 1168 ''')
1169 messages = self.db.issue.get('1', 'messages') 1169 messages = self.db.issue.get('1', 'messages')
1170 messages.sort() 1170 messages.sort()
1171 file = self.db.file.getnode (self.db.msg.get(messages[-1], 'files')[0]) 1171 file = self.db.file.getnode (self.db.msg.get(messages[-1], 'files')[0])
1172 self.assertEqual(file.name, 'main.dvi') 1172 self.assertEqual(file.name, 'main.dvi')
1173 self.assertEqual(file.content, 'Just a test \001') 1173 self.assertEqual(file.content, 'Just a test \001\n')
1174 1174
1175 def testFollowupStupidQuoting(self): 1175 def testFollowupStupidQuoting(self):
1176 self.doNewIssue() 1176 self.doNewIssue()
1177 1177
1178 self._handle_mail('''Content-Type: text/plain; 1178 self._handle_mail('''Content-Type: text/plain;

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