[Zope-CVS] CVS: Products/FileCacheManager/tests -
testFileCacheManager.py:1.11
Chris McDonough
chrism at plope.com
Sun Aug 29 16:51:00 EDT 2004
Update of /cvs-repository/Products/FileCacheManager/tests
In directory cvs.zope.org:/tmp/cvs-serv20167/tests
Modified Files:
testFileCacheManager.py
Log Message:
Add simple statistics tracking.
=== Products/FileCacheManager/tests/testFileCacheManager.py 1.10 => 1.11 ===
--- Products/FileCacheManager/tests/testFileCacheManager.py:1.10 Sat Aug 28 20:53:46 2004
+++ Products/FileCacheManager/tests/testFileCacheManager.py Sun Aug 29 16:50:30 2004
@@ -170,7 +170,16 @@
# the file should *still be there*
self.failUnless(os.path.exists(fpath))
-
+ def test_values(self):
+ self.assertEqual(self.FC.entries, {})
+ for ob in self.all_files:
+ self.FC.ZCache_set(ob)
+ get_transaction().commit()
+ self.assertNotEqual(self.FC.entries, {})
+ for ob in self.all_files:
+ self.FC.ZCache_invalidate(ob)
+ get_transaction().commit()
+ self.assertEqual(self.FC.entries, {})
class FileCacheManagerTestBase(unittest.TestCase):
@@ -214,6 +223,7 @@
def testGetCache(self):
c = self.FCM.ZCacheManager_getCache()
self.failUnless(isinstance(c, FileCache))
+
def test_suite():
suite = unittest.TestSuite((
More information about the Zope-CVS
mailing list