[Erp5-report] r19229 - /erp5/trunk/products/ERP5Form/tests/testProxify.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Feb 11 13:20:41 CET 2008


Author: jerome
Date: Mon Feb 11 13:20:40 2008
New Revision: 19229

URL: http://svn.erp5.org?rev=19229&view=rev
Log:
TestProxify can be a simple unittest.TestCase


Modified:
    erp5/trunk/products/ERP5Form/tests/testProxify.py

Modified: erp5/trunk/products/ERP5Form/tests/testProxify.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/tests/testProxify.py?rev=19229&r1=19228&r2=19229&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/tests/testProxify.py (original)
+++ erp5/trunk/products/ERP5Form/tests/testProxify.py Mon Feb 11 13:20:40 2008
@@ -48,17 +48,19 @@
 from Products.ERP5Form.Form import ERP5Form
 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):
     return "Proxify"
 
   def setUp(self):
     # base field library
-    ERP5TypeTestCase.setUp(self)
-    self.container = Folder('container').__of__(Folder('root')).__of__(self.getPortal())
+    self.container = Folder('container').__of__(Folder('root'))
     self.container._setObject('Base_view',
                                ERP5Form('Base_view', 'Base'))
     base_view = self.base_view = self.container.Base_view




More information about the Erp5-report mailing list