Mercurial > p > roundup > code
comparison tests/test_schema.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 | f1cffcad4903 |
comparison
equal
deleted
inserted
replaced
| 70:d95a03480fd1 | 71:5147b4c51fd5 |
|---|---|
| 40 val = status.list() | 40 val = status.list() |
| 41 self.assertEqual(val, ['1', '2', '4'], 'blah') | 41 self.assertEqual(val, ['1', '2', '4'], 'blah') |
| 42 | 42 |
| 43 def testB_Issue(self): | 43 def testB_Issue(self): |
| 44 issue = Class(self.db, "issue", title=String(), status=Link("status")) | 44 issue = Class(self.db, "issue", title=String(), status=Link("status")) |
| 45 self.assert_(issue, 'no class object returned') | |
| 45 | 46 |
| 46 def testC_User(self): | 47 def testC_User(self): |
| 47 user = Class(self.db, "user", username=String(), password=String()) | 48 user = Class(self.db, "user", username=String(), password=String()) |
| 49 self.assert_(user, 'no class object returned') | |
| 48 user.setkey("username") | 50 user.setkey("username") |
| 49 | 51 |
| 50 | 52 |
| 51 def suite(): | 53 def suite(): |
| 52 return unittest.makeSuite(SchemaTestCase, 'test') | 54 return unittest.makeSuite(SchemaTestCase, 'test') |
