Commit 8b404227 authored by Jérome Perrin's avatar Jérome Perrin

TestProxify can be a simple unittest.TestCase



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19229 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 635cf7d2
...@@ -48,17 +48,19 @@ from Products.ERP5Type.Core.Folder import Folder ...@@ -48,17 +48,19 @@ from Products.ERP5Type.Core.Folder import Folder
from Products.ERP5Form.Form import ERP5Form from Products.ERP5Form.Form import ERP5Form
from Products.ERP5Form.ProxyField import purgeFieldValueCache from Products.ERP5Form.ProxyField import purgeFieldValueCache
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase # install ERP5Form and load patches
from Testing import ZopeTestCase
ZopeTestCase.installProduct('ERP5Form')
class TestProxify(ERP5TypeTestCase):
class TestProxify(unittest.TestCase):
def getTitle(self): def getTitle(self):
return "Proxify" return "Proxify"
def setUp(self): def setUp(self):
# base field library # base field library
ERP5TypeTestCase.setUp(self) self.container = Folder('container').__of__(Folder('root'))
self.container = Folder('container').__of__(Folder('root')).__of__(self.getPortal())
self.container._setObject('Base_view', self.container._setObject('Base_view',
ERP5Form('Base_view', 'Base')) ERP5Form('Base_view', 'Base'))
base_view = self.base_view = self.container.Base_view base_view = self.base_view = self.container.Base_view
......
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