From 8eef66430229cb7da2149d8715cd583ea343df53 Mon Sep 17 00:00:00 2001 From: richard Date: Fri, 27 Jul 2001 06:23:59 +0000 Subject: [PATCH] consistency git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@93 57a73879-2fb5-44c3-a270-3262357dd7e2 --- tests/test_db.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/tests/test_db.py b/tests/test_db.py index 1ce0cc8..faee2ff 100644 --- a/tests/test_db.py +++ b/tests/test_db.py @@ -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 @@ class ReadOnlyDBTestCase(unittest.TestCase): 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 @@ 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... # -- 2.30.2