Commit 0ad8e8af authored by Nicolas Delaby's avatar Nicolas Delaby

typo

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26974 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b2ad5dad
...@@ -65,7 +65,7 @@ class TestCacheTool(ERP5TypeTestCase): ...@@ -65,7 +65,7 @@ class TestCacheTool(ERP5TypeTestCase):
def test_01_CheckCacheTool(self): def test_01_CheckCacheTool(self):
portal = self.getPortal() portal = self.getPortal()
self.assertNotEqual(None,getattr(portal,'portal_caches',None)) self.assertNotEqual(None, getattr(portal, 'portal_caches', None))
transaction.commit() transaction.commit()
def test_02_CheckPortalTypes(self): def test_02_CheckPortalTypes(self):
...@@ -77,8 +77,8 @@ class TestCacheTool(ERP5TypeTestCase): ...@@ -77,8 +77,8 @@ class TestCacheTool(ERP5TypeTestCase):
"SQL Cache", "SQL Cache",
) )
for typeinfo_name in typeinfo_names: for typeinfo_name in typeinfo_names:
portal_type = getattr(portal_types,typeinfo_name,None) portal_type = getattr(portal_types, typeinfo_name, None)
self.assertNotEqual(None,portal_type) self.assertNotEqual(None, portal_type)
transaction.commit() transaction.commit()
def test_03_CreateCacheFactories(self): def test_03_CreateCacheFactories(self):
...@@ -88,7 +88,7 @@ class TestCacheTool(ERP5TypeTestCase): ...@@ -88,7 +88,7 @@ class TestCacheTool(ERP5TypeTestCase):
# Cache plugins are organised into 'Cache factories' so we create # Cache plugins are organised into 'Cache factories' so we create
# factories first ram_cache_factory (to test Ram Cache Plugin) # factories first ram_cache_factory (to test Ram Cache Plugin)
ram_cache_factory = portal_caches.newContent(portal_type="Cache Factory", ram_cache_factory = portal_caches.newContent(portal_type="Cache Factory",
id = 'ram_cache_factory', id='ram_cache_factory',
container=portal_caches) container=portal_caches)
ram_cache_plugin = ram_cache_factory.newContent(portal_type="Ram Cache", ram_cache_plugin = ram_cache_factory.newContent(portal_type="Ram Cache",
container=ram_cache_factory) container=ram_cache_factory)
...@@ -97,7 +97,7 @@ class TestCacheTool(ERP5TypeTestCase): ...@@ -97,7 +97,7 @@ class TestCacheTool(ERP5TypeTestCase):
## distributed_ram_cache_factory (to test Distributed Ram Cache Plugin) ## distributed_ram_cache_factory (to test Distributed Ram Cache Plugin)
dram_cache_factory = portal_caches.newContent(portal_type="Cache Factory", dram_cache_factory = portal_caches.newContent(portal_type="Cache Factory",
id = 'distributed_ram_cache_factory', id='distributed_ram_cache_factory',
container=portal_caches) container=portal_caches)
dram_cache_plugin = dram_cache_factory.newContent( dram_cache_plugin = dram_cache_factory.newContent(
portal_type="Distributed Ram Cache", container=dram_cache_factory) portal_type="Distributed Ram Cache", container=dram_cache_factory)
...@@ -105,7 +105,7 @@ class TestCacheTool(ERP5TypeTestCase): ...@@ -105,7 +105,7 @@ class TestCacheTool(ERP5TypeTestCase):
## sql_cache_factory (to test SQL Cache Plugin) ## sql_cache_factory (to test SQL Cache Plugin)
sql_cache_factory = portal_caches.newContent(portal_type="Cache Factory", sql_cache_factory = portal_caches.newContent(portal_type="Cache Factory",
id = 'sql_cache_factory', id='sql_cache_factory',
container=portal_caches) container=portal_caches)
sql_cache_plugin = sql_cache_factory.newContent( sql_cache_plugin = sql_cache_factory.newContent(
portal_type="SQL Cache", container=sql_cache_factory) portal_type="SQL Cache", container=sql_cache_factory)
...@@ -113,7 +113,7 @@ class TestCacheTool(ERP5TypeTestCase): ...@@ -113,7 +113,7 @@ class TestCacheTool(ERP5TypeTestCase):
## erp5_user_factory (to test a combination of all cache plugins) ## erp5_user_factory (to test a combination of all cache plugins)
erp5_user_factory = portal_caches.newContent(portal_type="Cache Factory", erp5_user_factory = portal_caches.newContent(portal_type="Cache Factory",
id = "erp5_user_factory", id="erp5_user_factory",
container=portal_caches) container=portal_caches)
ram_cache_plugin = erp5_user_factory.newContent( ram_cache_plugin = erp5_user_factory.newContent(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment