[Zope3-checkins] CVS: Zope3/src/zope/app/schemagen/tests - setstatemodule.py.txt:1.4 setstatemodule_no_history.py.txt:1.4 test_modulegen.py:1.5 test_schemaspec.py:1.3

Fred L. Drake, Jr. fred at zope.com
Fri Feb 20 11:58:01 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/schemagen/tests
In directory cvs.zope.org:/tmp/cvs-serv22507/src/zope/app/schemagen/tests

Modified Files:
	setstatemodule.py.txt setstatemodule_no_history.py.txt 
	test_modulegen.py test_schemaspec.py 
Log Message:


update to replace ZODB 4 with ZODB 3


=== Zope3/src/zope/app/schemagen/tests/setstatemodule.py.txt 1.3 => 1.4 ===
--- Zope3/src/zope/app/schemagen/tests/setstatemodule.py.txt:1.3	Wed Jun  4 06:46:38 2003
+++ Zope3/src/zope/app/schemagen/tests/setstatemodule.py.txt	Fri Feb 20 11:57:29 2004
@@ -1,5 +1,5 @@
 from zope.interface import Interface, implements
-from persistence import Persistent
+from persistent import Persistent
 from zope.schema.fieldproperty import FieldProperty
 
 # field imports


=== Zope3/src/zope/app/schemagen/tests/setstatemodule_no_history.py.txt 1.3 => 1.4 ===
--- Zope3/src/zope/app/schemagen/tests/setstatemodule_no_history.py.txt:1.3	Wed Jun  4 06:46:38 2003
+++ Zope3/src/zope/app/schemagen/tests/setstatemodule_no_history.py.txt	Fri Feb 20 11:57:29 2004
@@ -1,5 +1,5 @@
 from zope.interface import Interface, implements
-from persistence import Persistent
+from persistent import Persistent
 from zope.schema.fieldproperty import FieldProperty
 
 # field imports
@@ -15,6 +15,3 @@
 
     def __init__(self):
         self.__schema_version__ = 0
-        
-
-


=== Zope3/src/zope/app/schemagen/tests/test_modulegen.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/schemagen/tests/test_modulegen.py:1.4	Wed Jun  4 06:46:38 2003
+++ Zope3/src/zope/app/schemagen/tests/test_modulegen.py	Fri Feb 20 11:57:29 2004
@@ -18,7 +18,7 @@
 from unittest import TestCase, makeSuite, TestSuite
 from zope.schema import Text, Int, Float, getFieldsInOrder
 from zope.interface import implementedBy
-from persistence.interfaces import IPersistent
+from persistent.interfaces import IPersistent
 from zope.app.schemagen.modulegen import generateModuleSource
 
 class GenerateModuleSourceTestsBase(TestCase):


=== Zope3/src/zope/app/schemagen/tests/test_schemaspec.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/schemagen/tests/test_schemaspec.py:1.2	Wed Dec 25 09:13:15 2002
+++ Zope3/src/zope/app/schemagen/tests/test_schemaspec.py	Fri Feb 20 11:57:29 2004
@@ -201,12 +201,12 @@
         self.assertEquals(source, s.generateModuleSource())
 
     def test_generateModuleSourceNoHistory(self):
-        s = self.s
         # no history, so expect no setstate
         f = openInTests('setstatemodule_no_history.py.txt', 'r')
         source = f.read()
         f.close()
-        self.assertEquals(source.strip(), s.generateModuleSource().strip())
+        self.assertEquals(source.strip(),
+                          self.s.generateModuleSource().strip())
 
     def test_prepareSetstate(self):
         from zope.app.schemagen.schemaspec import prepareSetstate




More information about the Zope3-Checkins mailing list