Mercurial > p > roundup > code
diff tests/test_db.py @ 88:168def1ce74d
consistency
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 27 Jul 2001 06:23:59 +0000 |
| parents | d3dcac043ab0 |
| children | 76803679598f |
line wrap: on
line diff
--- a/tests/test_db.py Fri Jul 27 06:23:09 2001 +0000 +++ b/tests/test_db.py Fri Jul 27 06:23:59 2001 +0000 @@ -1,4 +1,4 @@ -# $Id: test_db.py,v 1.5 2001-07-27 06:23:09 richard Exp $ +# $Id: test_db.py,v 1.6 2001-07-27 06:23:59 richard Exp $ import unittest, os, shutil @@ -137,9 +137,12 @@ def testExceptions(self): # this tests the exceptions that should be raised - self.assertRaises(DatabaseError, self.db.status.create, name="foo") - self.assertRaises(DatabaseError, self.db.status.set, '1', name="foo") - self.assertRaises(DatabaseError, self.db.status.retire, '1') + ar = self.assertRaises + + # this tests the exceptions that should be raised + ar(DatabaseError, self.db.status.create, name="foo") + ar(DatabaseError, self.db.status.set, '1', name="foo") + ar(DatabaseError, self.db.status.retire, '1') def suite(): @@ -150,6 +153,9 @@ # # $Log: not supported by cvs2svn $ +# Revision 1.5 2001/07/27 06:23:09 richard +# Added some new hyperdb tests to make sure we raise the right exceptions. +# # Revision 1.4 2001/07/25 04:34:31 richard # Added id and log to tests files... #
