[Zodb-checkins] CVS: Zope3/lib/python/Persistence/tests - testModule.py:1.20

Jeremy Hylton jeremy@zope.com
Fri, 20 Sep 2002 14:28:07 -0400


Update of /cvs-repository/Zope3/lib/python/Persistence/tests
In directory cvs.zope.org:/tmp/cvs-serv1321/tests

Modified Files:
	testModule.py 
Log Message:
Add test of "from A.B import D" where A.B.D is a module/package.



=== Zope3/lib/python/Persistence/tests/testModule.py 1.19 => 1.20 ===
--- Zope3/lib/python/Persistence/tests/testModule.py:1.19	Fri Sep 20 11:21:05 2002
+++ Zope3/lib/python/Persistence/tests/testModule.py	Fri Sep 20 14:28:07 2002
@@ -239,6 +239,9 @@
         mgr.new("A.B.D", "def f(x): return x")
         get_transaction().commit()
 
+        from A.B import D
+        self.assert_(hasattr(A.B.D, "f"))
+
     def testPackageInit(self):
         mgr = PersistentModuleManager(self.registry)
         mgr.new("A.B.C", "def f(x): return x")