summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3db88cc)
raw | patch | inline | side by side (parent: 3db88cc)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Tue, 18 Mar 2003 23:28:16 +0000 (23:28 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Tue, 18 Mar 2003 23:28:16 +0000 (23:28 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1605 57a73879-2fb5-44c3-a270-3262357dd7e2
test/test_db.py | patch | blob | history |
diff --git a/test/test_db.py b/test/test_db.py
index cb7e115c800bc3eab4e3abfcdfa57ab88a30a854..7d610b5320cf2772d8448ad8fe079d27c4ccf7d2 100644 (file)
--- a/test/test_db.py
+++ b/test/test_db.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: test_db.py,v 1.79 2003-03-18 00:50:24 richard Exp $
+# $Id: test_db.py,v 1.80 2003-03-18 23:28:16 richard Exp $
import unittest, os, shutil, time
self.db.user.set(nid, age=3)
self.assertNotEqual(self.db.user.get(nid, 'age'), 1)
self.db.user.set(nid, age=1.0)
+ self.assertEqual(self.db.user.get(nid, 'age'), 1)
+ self.db.user.set(nid, age=0)
+ self.assertEqual(self.db.user.get(nid, 'age'), 0)
+
+ nid = self.db.user.create(username='bar', age=0)
+ self.assertEqual(self.db.user.get(nid, 'age'), 0)
def testNumberUnset(self):
nid = self.db.user.create(username='foo', age=1)
setupSchema(self.db, 0, metakit)
def suite():
+ p = []
+
l = [
unittest.makeSuite(anydbmDBTestCase, 'test'),
unittest.makeSuite(anydbmReadOnlyDBTestCase, 'test')
]
+ p.append('anydbm')
#return unittest.TestSuite(l)
from roundup import backends
- p = []
if hasattr(backends, 'mysql'):
from roundup.backends import mysql
try: