[Zope-Checkins] CVS: Zope3/lib/python/Zope/Configuration/tests - testNames.py:1.1.2.5

Jim Fulton jim@zope.com
Thu, 3 Jan 2002 17:31:09 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/Configuration/tests
In directory cvs.zope.org:/tmp/cvs-serv29567/Zope/Configuration/tests

Modified Files:
      Tag: Zope-3x-branch
	testNames.py 
Log Message:
Changed to look for products in ZopeProducts, not Zope.Products.


=== Zope3/lib/python/Zope/Configuration/tests/testNames.py 1.1.2.4 => 1.1.2.5 ===
         from Zope.Configuration.tests import Products_
         self.old=sys.modules.get('Products', None)
-        sys.modules['Zope.Products']=Products_
+        sys.modules['ZopeProducts']=Products_
 
     def tearDown(self):
         old=self.old
-        if old is None: del sys.modules['Zope.Products']
-        else: sys.modules['Zope.Products']=self.old
+        if old is None: del sys.modules['ZopeProducts']
+        else: sys.modules['ZopeProducts']=self.old
         
     def testProduct(self):
         from Zope.Configuration.name import resolve
 
         c=resolve('.Contact')
         self.assertEquals(c.n, 2)
-        c=resolve('Zope.Products.Contact.Contact.Contact')
+        c=resolve('ZopeProducts.Contact.Contact.Contact')
         self.assertEquals(c.n, 2)
         
     def testPackage(self):