Mercurial > p > roundup > code
comparison tests/test_db.py @ 73:e1ce700bd7b9
Fixed an oops
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 25 Jul 2001 03:40:19 +0000 |
| parents | 5147b4c51fd5 |
| children | f1cffcad4903 |
comparison
equal
deleted
inserted
replaced
| 72:c186b637fee0 | 73:e1ce700bd7b9 |
|---|---|
| 36 self.db.issue.create(title="abuse", status='1') | 36 self.db.issue.create(title="abuse", status='1') |
| 37 self.db.issue.addprop(fixer=Link("user")) | 37 self.db.issue.addprop(fixer=Link("user")) |
| 38 props = self.db.issue.getprops() | 38 props = self.db.issue.getprops() |
| 39 keys = props.keys() | 39 keys = props.keys() |
| 40 keys.sort() | 40 keys.sort() |
| 41 self.assertEqual(keys, ['title', 'status', 'user'], 'wrong prop list') | 41 self.assertEqual(keys, ['fixer', 'status', 'title'], 'wrong prop list') |
| 42 self.db.issue.set('5', status=2) | 42 self.db.issue.set('5', status=2) |
| 43 self.db.issue.get('5', "status") | 43 self.db.issue.get('5', "status") |
| 44 self.db.status.get('2', "name") | 44 self.db.status.get('2', "name") |
| 45 self.db.issue.get('5', "title") | 45 self.db.issue.get('5', "title") |
| 46 self.db.issue.find(status = self.db.status.lookup("in-progress")) | 46 self.db.issue.find(status = self.db.status.lookup("in-progress")) |
| 48 self.db.status.history('1') | 48 self.db.status.history('1') |
| 49 self.db.status.history('2') | 49 self.db.status.history('2') |
| 50 | 50 |
| 51 def testExceptions(self): | 51 def testExceptions(self): |
| 52 # this tests the exceptions that should be raised | 52 # this tests the exceptions that should be raised |
| 53 pass | |
| 53 | 54 |
| 54 def suite(): | 55 def suite(): |
| 55 return unittest.makeSuite(DBTestCase, 'test') | 56 return unittest.makeSuite(DBTestCase, 'test') |
| 56 | 57 |
