[Zope-CVS] CVS: Products/Basket/tests - testBasket.py:1.22

Chris McDonough chrism at plope.com
Wed Nov 9 20:19:05 EST 2005


Update of /cvs-repository/Products/Basket/tests
In directory cvs.zope.org:/tmp/cvs-serv6292/tests

Modified Files:
	testBasket.py 
Log Message:
Add tests for multiproducts.


=== Products/Basket/tests/testBasket.py 1.21 => 1.22 ===
--- Products/Basket/tests/testBasket.py:1.21	Wed Nov  9 19:31:12 2005
+++ Products/Basket/tests/testBasket.py	Wed Nov  9 20:18:34 2005
@@ -261,6 +261,19 @@
         result = basket.initialize(DummyProductContext('Basket'))
         self.assertEqual(result, ['diskproduct1 initialized'])
 
+    def test_multiproduct(self):
+        basket = self._makeOne()
+        basket.pre_initialized = True
+
+        sys.path.append(self.fixtures)
+        self.working_set.add_entry(self.fixtures)
+
+        basket.require(distro_str='multiproduct')
+        result = basket.initialize(DummyProductContext('Basket'))
+        self.assertEqual(result,
+                         ['multiproduct1 initialized',
+                          'multiproduct2 initialized'])
+
     def test_product_distributions_by_dwim(self):
         basket = self._makeOne()
         basket.pre_initialized = True



More information about the Zope-CVS mailing list