[Zope-CVS] CVS: Products/FileCacheManager/tests -
testFileCacheManager.py:1.2
Jens Vagelpohl
jens at dataflake.org
Fri Aug 13 04:41:51 EDT 2004
Update of /cvs-repository/Products/FileCacheManager/tests
In directory cvs.zope.org:/tmp/cvs-serv20921/tests
Modified Files:
testFileCacheManager.py
Log Message:
- Add form cleanup
- Help screeen for add form
- Add ability to set a title from the add form
- Tests for the instantiation (not tested yet, other stuff fails)
=== Products/FileCacheManager/tests/testFileCacheManager.py 1.1.1.1 => 1.2 ===
--- Products/FileCacheManager/tests/testFileCacheManager.py:1.1.1.1 Sun Mar 21 19:15:32 2004
+++ Products/FileCacheManager/tests/testFileCacheManager.py Fri Aug 13 04:41:20 2004
@@ -3,6 +3,9 @@
from Products.FileCacheManager.FileCacheManager import FileCache, \
FileCacheManager, file_producer
+FCM_ID = 'fcm1'
+FCM_TITLE = 'Testing FileCacheManager'
+
class Dummy:
""" fake content object """
@@ -77,9 +80,13 @@
class FileCacheManagerTestBase(unittest.TestCase):
def setUp(self):
- self.FCM = FileCacheManager('fcm1')
+ self.FCM = FileCacheManager(FCM_ID, title=FCM_TITLE)
class FileCacheManagerTests(FileCacheManagerTestBase):
+
+ def testInstantiation(self):
+ self.failUnless(self.FCM.getId() == FCM_ID)
+ self.failUnless(self.FCM.title == FCM_TITLE)
def testGetCache(self):
c = self.FCM.ZCacheManager_getCache()
More information about the Zope-CVS
mailing list