Mercurial > p > roundup > code
changeset 2753:d8eb00a54119
safeget() removed from the API
| author | Alexander Smishlajev <a1s@users.sourceforge.net> |
|---|---|
| date | Thu, 14 Oct 2004 10:39:14 +0000 |
| parents | a97bbd72a643 |
| children | 1f89984c0ea5 |
| files | test/db_test_base.py |
| diffstat | 1 files changed, 1 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/test/db_test_base.py Tue Oct 12 21:54:25 2004 +0000 +++ b/test/db_test_base.py Thu Oct 14 10:39:14 2004 +0000 @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: db_test_base.py,v 1.48 2004-10-08 00:18:28 richard Exp $ +# $Id: db_test_base.py,v 1.49 2004-10-14 10:39:14 a1s Exp $ import unittest, os, shutil, errno, imp, sys, time, pprint @@ -1062,14 +1062,6 @@ newid = self.db.user.create(username='testing') assert newid > maxid - def testSafeGet(self): - # existent nodeid, existent property - self.assertEqual(self.db.user.safeget('1', 'username'), 'admin') - # nonexistent nodeid, existent property - self.assertEqual(self.db.user.safeget('999', 'username'), None) - # different default - self.assertEqual(self.db.issue.safeget('999', 'nosy', []), []) - def testAddProperty(self): self.db.issue.create(title="spam", status='1') self.db.commit()
