[Zope-Checkins] SVN: Zope/branches/five-integration/lib/python/OFS/tests/testProductInit.py Reenable a test that failed due to bad interaction with ZopeTestCase.

Stefan H. Holek stefan at epy.co.at
Tue Mar 29 10:47:49 EST 2005


Log message for revision 29718:
  Reenable a test that failed due to bad interaction with ZopeTestCase.
  

Changed:
  U   Zope/branches/five-integration/lib/python/OFS/tests/testProductInit.py

-=-
Modified: Zope/branches/five-integration/lib/python/OFS/tests/testProductInit.py
===================================================================
--- Zope/branches/five-integration/lib/python/OFS/tests/testProductInit.py	2005-03-29 15:13:17 UTC (rev 29717)
+++ Zope/branches/five-integration/lib/python/OFS/tests/testProductInit.py	2005-03-29 15:47:48 UTC (rev 29718)
@@ -151,15 +151,13 @@
             self.assert_(name in names)
         self.assert_('another' in names)
 
-    # DISABLED because ZopeTestCase messes with import_products()
-    # making the test fail. Consequence of Five integration.
-    #def test_import_products(self):
-    #    self.makeFakeProducts()
-    #    self.configure(cfg)
-    #    from OFS.Application import import_products
-    #    names = import_products()
-    #    for name in FAKEPRODUCTS:
-    #        assert name in names
+    def test_import_products(self):
+        self.makeFakeProducts()
+        self.configure(cfg)
+        from OFS.Application import import_products
+        names = import_products()
+        for name in FAKEPRODUCTS:
+            assert name in names
 
     def test_import_product_throws(self):
         self.makeProduct(os.path.join(TEMPPRODUCTS, 'abar'))



More information about the Zope-Checkins mailing list