Mercurial > p > roundup > code
comparison test/test_multipart.py @ 5037:364c54991861
Remove unneeded TestSuite code from tests
The TestSuite code is no longer needed now that we are using py.test
which can automatically discover tests
| author | John Kristensen <john@jerrykan.com> |
|---|---|
| date | Fri, 21 Aug 2015 13:08:02 +1000 |
| parents | b5bb492e4b3c |
| children | e20f472fde7d |
comparison
equal
deleted
inserted
replaced
| 5036:380d8d8b30a3 | 5037:364c54991861 |
|---|---|
| 225 multipart/mixed | 225 multipart/mixed |
| 226 message/rfc822""", | 226 message/rfc822""", |
| 227 (None, | 227 (None, |
| 228 [('foo.eml', 'message/rfc822', 'Subject: foo\n\nfoo\n')])) | 228 [('foo.eml', 'message/rfc822', 'Subject: foo\n\nfoo\n')])) |
| 229 | 229 |
| 230 def test_suite(): | |
| 231 suite = unittest.TestSuite() | |
| 232 suite.addTest(unittest.makeSuite(MultipartTestCase)) | |
| 233 return suite | |
| 234 | |
| 235 if __name__ == '__main__': | |
| 236 runner = unittest.TextTestRunner() | |
| 237 unittest.main(testRunner=runner) | |
| 238 | |
| 239 | |
| 240 # vim: set filetype=python ts=4 sw=4 et si | 230 # vim: set filetype=python ts=4 sw=4 et si |
