Mercurial > p > roundup > code
comparison test/test_mailgw.py @ 1860:cac778217c0c
Addition to last log message: added tests. (Also, fix uncommenting one suite).
| author | Johannes Gijsbers <jlgijsbers@users.sourceforge.net> |
|---|---|
| date | Fri, 24 Oct 2003 15:01:11 +0000 |
| parents | 492a962b6d6f |
| children | 3260268e45d2 |
comparison
equal
deleted
inserted
replaced
| 1859:492a962b6d6f | 1860:cac778217c0c |
|---|---|
| 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.54 2003-10-24 14:59:38 jlgijsbers Exp $ | 11 # $Id: test_mailgw.py,v 1.55 2003-10-24 15:01:11 jlgijsbers Exp $ |
| 12 | 12 |
| 13 import unittest, tempfile, os, shutil, errno, imp, sys, difflib, rfc822 | 13 import unittest, tempfile, os, shutil, errno, imp, sys, difflib, rfc822 |
| 14 | 14 |
| 15 from cStringIO import StringIO | 15 from cStringIO import StringIO |
| 16 | 16 |
| 1010 Testing, testing.''' | 1010 Testing, testing.''' |
| 1011 summary, content = parseContent(body, 1, 0) | 1011 summary, content = parseContent(body, 1, 0) |
| 1012 self.assertEqual(body, content) | 1012 self.assertEqual(body, content) |
| 1013 | 1013 |
| 1014 def suite(): | 1014 def suite(): |
| 1015 l = [#unittest.makeSuite(MailgwTestCase), | 1015 l = [unittest.makeSuite(MailgwTestCase), |
| 1016 unittest.makeSuite(ParseContentTestCase)] | 1016 unittest.makeSuite(ParseContentTestCase)] |
| 1017 return unittest.TestSuite(l) | 1017 return unittest.TestSuite(l) |
| 1018 | 1018 |
| 1019 | 1019 |
| 1020 # vim: set filetype=python ts=4 sw=4 et si | 1020 # vim: set filetype=python ts=4 sw=4 et si |
