Mercurial > p > roundup > code
diff tests/test_db.py @ 71:5147b4c51fd5
Added the Roundup spec to the new documentation directory.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 25 Jul 2001 01:23:07 +0000 |
| parents | b936635f142d |
| children | e1ce700bd7b9 |
line wrap: on
line diff
--- a/tests/test_db.py Tue Jul 24 11:18:25 2001 +0000 +++ b/tests/test_db.py Wed Jul 25 01:23:07 2001 +0000 @@ -35,9 +35,10 @@ self.db.issue.create(title="arguments", status='2') self.db.issue.create(title="abuse", status='1') self.db.issue.addprop(fixer=Link("user")) - self.db.issue.getprops() -#{"title": <hyperdb.String>, "status": <hyperdb.Link to "status">, -#"user": <hyperdb.Link to "user">} + props = self.db.issue.getprops() + keys = props.keys() + keys.sort() + self.assertEqual(keys, ['title', 'status', 'user'], 'wrong prop list') self.db.issue.set('5', status=2) self.db.issue.get('5', "status") self.db.status.get('2', "name") @@ -47,6 +48,8 @@ self.db.status.history('1') self.db.status.history('2') + def testExceptions(self): + # this tests the exceptions that should be raised def suite(): return unittest.makeSuite(DBTestCase, 'test')
