diff test/db_test_base.py @ 1929:b7912efc7f57

Add docstring to safeget method. Remove handling of invalid propname (YAGNI).
author Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
date Sun, 16 Nov 2003 22:56:46 +0000
parents f5e8aeb1382d
children 767ff2a03eee
line wrap: on
line diff
--- a/test/db_test_base.py	Sun Nov 16 20:01:16 2003 +0000
+++ b/test/db_test_base.py	Sun Nov 16 22:56:46 2003 +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.9 2003-11-16 19:59:06 jlgijsbers Exp $ 
+# $Id: db_test_base.py,v 1.10 2003-11-16 22:56:46 jlgijsbers Exp $ 
 
 import unittest, os, shutil, errno, imp, sys, time, pprint
 
@@ -801,12 +801,8 @@
     def testSafeGet(self):
         # existent nodeid, existent property
         self.assertEqual(self.db.user.safeget('1', 'username'), 'admin')
-        # existent nodeid, nonexistent property
-        self.assertEqual(self.db.user.safeget('1', 'nonexistent'), None)
         # nonexistent nodeid, existent property
         self.assertEqual(self.db.user.safeget('999', 'username'), None)
-        # nonexistent nodeid, nonexistent property
-        self.assertEqual(self.db.user.safeget('999', 'nonexistent'), None)
         # different default
         self.assertEqual(self.db.issue.safeget('999', 'nosy', []), [])
 

Roundup Issue Tracker: http://roundup-tracker.org/