summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 33be8fe)
raw | patch | inline | side by side (parent: 33be8fe)
author | wc2so1 <wc2so1@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Tue, 27 Jan 2004 18:16:50 +0000 (18:16 +0000) | ||
committer | wc2so1 <wc2so1@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Tue, 27 Jan 2004 18:16:50 +0000 (18:16 +0000) |
as metakit doesn't handle null values.
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2064 57a73879-2fb5-44c3-a270-3262357dd7e2
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2064 57a73879-2fb5-44c3-a270-3262357dd7e2
test/test_metakit.py | patch | blob | history |
diff --git a/test/test_metakit.py b/test/test_metakit.py
index 85961545f6f5ecb7eabcd715aabf20a8a1c2b1a6..0610b79c540f17b450f6f63959b922f93f30ec26 100644 (file)
--- a/test/test_metakit.py
+++ b/test/test_metakit.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: test_metakit.py,v 1.2 2003-11-14 00:11:19 richard Exp $
-
+# $Id: test_metakit.py,v 1.3 2004-01-27 18:16:50 wc2so1 Exp $
import unittest, os, shutil, time, weakref
-from db_test_base import DBTest, ROTest, SchemaTest, ClassicInitTest, config
+from db_test_base import DBTest, ROTest, SchemaTest, ClassicInitTest, config, password
from roundup import backends
self.db.user.set(nid, age=None)
self.assertEqual(self.db.user.get(nid, "age"), 0)
+ def testPasswordUnset(self):
+ # XXX: metakit can't unset Numbers (id's) :(
+ x = password.Password('x')
+ nid = self.db.user.create(username='foo', password=x)
+ self.db.user.set(nid, assignable=None)
+ self.assertEqual(self.db.user.get(nid, "assignable"), 0)
+
class metakitROTest(metakitOpener, ROTest):
pass