Mercurial > p > roundup > code
comparison test/test_token.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 | 9b910e8d987d |
| children | 6e3e4f24c753 |
comparison
equal
deleted
inserted
replaced
| 1872:c085b4f4f0c0 | 1873:f63aa57386b0 |
|---|---|
| 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_token.py,v 1.2 2002-09-10 00:19:55 richard Exp $ | 11 # $Id: test_token.py,v 1.3 2003-10-25 22:53:26 richard Exp $ |
| 12 | 12 |
| 13 import unittest, time | 13 import unittest, time |
| 14 | 14 |
| 15 from roundup.token import token_split | 15 from roundup.token import token_split |
| 16 | 16 |
| 47 | 47 |
| 48 def testBadQuote(self): | 48 def testBadQuote(self): |
| 49 self.assertRaises(ValueError, token_split, '"hello world') | 49 self.assertRaises(ValueError, token_split, '"hello world') |
| 50 self.assertRaises(ValueError, token_split, "Roch'e Compaan") | 50 self.assertRaises(ValueError, token_split, "Roch'e Compaan") |
| 51 | 51 |
| 52 def suite(): | 52 def test_suite(): |
| 53 return unittest.makeSuite(TokenTestCase, 'test') | 53 suite = unittest.TestSuite() |
| 54 suite.addTest(unittest.makeSuite(TokenTestCase)) | |
| 55 return suite | |
| 54 | 56 |
| 57 if __name__ == '__main__': | |
| 58 runner = unittest.TextTestRunner() | |
| 59 unittest.main(testRunner=runner) | |
| 55 | 60 |
| 56 # vim: set filetype=python ts=4 sw=4 et si | 61 # vim: set filetype=python ts=4 sw=4 et si |
