CVS: Products/Basket/tests - testBasket.py:1.22

Chris McDonough <[email protected]>
Newsgroups gmane.comp.web.zope.public-cvs
Message-ID <[email protected]>
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

_______________________________________________
Zope-CVS maillist  -  [email protected]
http://mail.zope.org/mailman/listinfo/zope-cvs

Zope CVS instructions: http://dev.zope.org/CVS
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.