summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1ccfc1c)
raw | patch | inline | side by side (parent: 1ccfc1c)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 27 Jul 2001 06:23:59 +0000 (06:23 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 27 Jul 2001 06:23:59 +0000 (06:23 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@93 57a73879-2fb5-44c3-a270-3262357dd7e2
tests/test_db.py | patch | blob | history |
diff --git a/tests/test_db.py b/tests/test_db.py
index 1ce0cc84d84a82c6258f9ef4f8e0426dc949b9e2..faee2ffaca322203aea153299fb863bc74d0fa58 100644 (file)
--- a/tests/test_db.py
+++ b/tests/test_db.py
-# $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
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():
#
# $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...
#