comparison test/test_mailsplit.py @ 1873:f63aa57386b0

Backend improvements. - using Zope3's test runner now, allowing GC checks, nicer controls and coverage analysis - all RDMBS backends now have indexes on several columns - added testing of schema mutation, fixed rdbms backends handling of a couple of cases - !BETA! added postgresql backend, needs work !BETA!
author Richard Jones <richard@users.sourceforge.net>
date Sat, 25 Oct 2003 22:53:26 +0000
parents 3260268e45d2
children 6e3e4f24c753
comparison
equal deleted inserted replaced
1872:c085b4f4f0c0 1873:f63aa57386b0
13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
17 # 17 #
18 # $Id: test_mailsplit.py,v 1.14 2003-10-25 12:02:37 jlgijsbers Exp $ 18 # $Id: test_mailsplit.py,v 1.15 2003-10-25 22:53:26 richard Exp $
19 19
20 import unittest, cStringIO 20 import unittest, cStringIO
21 21
22 from roundup.mailgw import parseContent 22 from roundup.mailgw import parseContent
23 23
225 ---- 225 ----
226 Testing, testing.''' 226 Testing, testing.'''
227 summary, content = parseContent(body, 1, 0) 227 summary, content = parseContent(body, 1, 0)
228 self.assertEqual(body, content) 228 self.assertEqual(body, content)
229 229
230 def suite(): 230 def test_suite():
231 return unittest.makeSuite(MailsplitTestCase, 'test') 231 suite = unittest.TestSuite()
232 232 suite.addTest(unittest.makeSuite(MailsplitTestCase))
233 return suite
234
235 if __name__ == '__main__':
236 runner = unittest.TextTestRunner()
237 unittest.main(testRunner=runner)
233 238
234 # vim: set filetype=python ts=4 sw=4 et si 239 # vim: set filetype=python ts=4 sw=4 et si

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