Skip to content

Commit a42cc14

Browse files
author
Alexander Smishlajev
committed
safeget() removed from the API
1 parent f65b2f5 commit a42cc14

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

test/db_test_base.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: db_test_base.py,v 1.48 2004-10-08 00:18:28 richard Exp $
18+
# $Id: db_test_base.py,v 1.49 2004-10-14 10:39:14 a1s Exp $
1919

2020
import unittest, os, shutil, errno, imp, sys, time, pprint
2121

@@ -1062,14 +1062,6 @@ def testImportExport(self):
10621062
newid = self.db.user.create(username='testing')
10631063
assert newid > maxid
10641064

1065-
def testSafeGet(self):
1066-
# existent nodeid, existent property
1067-
self.assertEqual(self.db.user.safeget('1', 'username'), 'admin')
1068-
# nonexistent nodeid, existent property
1069-
self.assertEqual(self.db.user.safeget('999', 'username'), None)
1070-
# different default
1071-
self.assertEqual(self.db.issue.safeget('999', 'nosy', []), [])
1072-
10731065
def testAddProperty(self):
10741066
self.db.issue.create(title="spam", status='1')
10751067
self.db.commit()

0 commit comments

Comments
 (0)