diff test/test_db.py @ 1781:c4968040459e maint-0.6

merge from HEAD
author Richard Jones <richard@users.sourceforge.net>
date Thu, 04 Sep 2003 23:09:48 +0000
parents 5ca448ff8052
children 84b6d5b07626
line wrap: on
line diff
--- a/test/test_db.py	Sun Aug 31 04:31:03 2003 +0000
+++ b/test/test_db.py	Thu Sep 04 23:09:48 2003 +0000
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: test_db.py,v 1.90 2003-08-12 02:22:22 richard Exp $ 
+# $Id: test_db.py,v 1.90.2.1 2003-09-04 23:09:48 richard Exp $ 
 
 import unittest, os, shutil, time
 
@@ -296,7 +296,14 @@
         self.assertNotEqual(a, self.db.status.list())
         # try to restore retired node
         self.db.status.restore('1')
-        self.assertEqual(a, self.db.status.list())
+ 
+    def testCacheCreateSet(self):
+        self.db.issue.create(title="spam", status='1')
+        a = self.db.issue.get('1', 'title')
+        self.assertEqual(a, 'spam')
+        self.db.issue.set('1', title='ham')
+        b = self.db.issue.get('1', 'title')
+        self.assertEqual(b, 'ham')
 
     def testSerialisation(self):
         nid = self.db.issue.create(title="spam", status='1',

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