Mercurial > p > roundup > code
comparison test/test_token.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 | 6e3e4f24c753 |
| children | 6971c9249c6d |
comparison
equal
deleted
inserted
replaced
| 5036:380d8d8b30a3 | 5037:364c54991861 |
|---|---|
| 45 | 45 |
| 46 def testBadQuote(self): | 46 def testBadQuote(self): |
| 47 self.assertRaises(ValueError, token_split, '"hello world') | 47 self.assertRaises(ValueError, token_split, '"hello world') |
| 48 self.assertRaises(ValueError, token_split, "Roch'e Compaan") | 48 self.assertRaises(ValueError, token_split, "Roch'e Compaan") |
| 49 | 49 |
| 50 def test_suite(): | |
| 51 suite = unittest.TestSuite() | |
| 52 suite.addTest(unittest.makeSuite(TokenTestCase)) | |
| 53 return suite | |
| 54 | |
| 55 if __name__ == '__main__': | |
| 56 runner = unittest.TextTestRunner() | |
| 57 unittest.main(testRunner=runner) | |
| 58 | |
| 59 # vim: set filetype=python ts=4 sw=4 et si | 50 # vim: set filetype=python ts=4 sw=4 et si |
