Commit 70b92f39 authored by Stefan H. Holek's avatar Stefan H. Holek

Reenable a test that failed due to bad interaction with ZopeTestCase.

parent 7b10cecd
......@@ -151,15 +151,13 @@ class TestProductInit( unittest.TestCase ):
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'))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment