Skip to content

Commit 12fdd32

Browse files
author
Richard Jones
committed
consistency
1 parent b231368 commit 12fdd32

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

tests/test_db.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: test_db.py,v 1.5 2001-07-27 06:23:09 richard Exp $
1+
# $Id: test_db.py,v 1.6 2001-07-27 06:23:59 richard Exp $
22

33
import unittest, os, shutil
44

@@ -137,9 +137,12 @@ class Database(anydbm.Database):
137137

138138
def testExceptions(self):
139139
# this tests the exceptions that should be raised
140-
self.assertRaises(DatabaseError, self.db.status.create, name="foo")
141-
self.assertRaises(DatabaseError, self.db.status.set, '1', name="foo")
142-
self.assertRaises(DatabaseError, self.db.status.retire, '1')
140+
ar = self.assertRaises
141+
142+
# this tests the exceptions that should be raised
143+
ar(DatabaseError, self.db.status.create, name="foo")
144+
ar(DatabaseError, self.db.status.set, '1', name="foo")
145+
ar(DatabaseError, self.db.status.retire, '1')
143146

144147

145148
def suite():
@@ -150,6 +153,9 @@ def suite():
150153

151154
#
152155
# $Log: not supported by cvs2svn $
156+
# Revision 1.5 2001/07/27 06:23:09 richard
157+
# Added some new hyperdb tests to make sure we raise the right exceptions.
158+
#
153159
# Revision 1.4 2001/07/25 04:34:31 richard
154160
# Added id and log to tests files...
155161
#

0 commit comments

Comments
 (0)