comparison test/session_common.py @ 2089:93f03c6714d8

A few big changes in this commit: 1. The current indexer has been moved to backends/indexer_dbm in anticipation of my writing an indexer_rdbms, 2. Changed indexer invocation during create / set to follow the pattern set by the metakit backend, which was much cleaner, and 3. The "content" property of FileClass is now mutable in all but the metakit backend. Metakit needs to be changed to support the editing of "content". Hey, and I learnt today that the metakit backend implements its own indexer. How about that... :)
author Richard Jones <richard@users.sourceforge.net>
date Fri, 19 Mar 2004 04:47:59 +0000
parents c091cacdc505
children cc33dc9aa3f2
comparison
equal deleted inserted replaced
2088:90769be53b4b 2089:93f03c6714d8
30 self.assertEqual(self.sessions.get('random_key', 'text'), 30 self.assertEqual(self.sessions.get('random_key', 'text'),
31 'hello, world!') 31 'hello, world!')
32 self.sessions.set('random_key', text='nope') 32 self.sessions.set('random_key', text='nope')
33 self.assertEqual(self.sessions.get('random_key', 'text'), 'nope') 33 self.assertEqual(self.sessions.get('random_key', 'text'), 'nope')
34 34
35 def testSetOTK(self):
36 assert 0, 'not implemented'
37
38 def testExpiry(self):
39 assert 0, 'not implemented'
40
41 class DBMTest(SessionTest): 35 class DBMTest(SessionTest):
42 import roundup.backends.sessions_dbm as sessions_module 36 import roundup.backends.sessions_dbm as sessions_module
43 37
44 class RDBMSTest(SessionTest): 38 class RDBMSTest(SessionTest):
45 import roundup.backends.sessions_rdbms as sessions_module 39 import roundup.backends.sessions_rdbms as sessions_module

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