[Zope-CVS] CVS: Products/Basket/tests - testBasket.py:1.14
Chris McDonough
chrism at plope.com
Wed Nov 9 14:39:25 EST 2005
Update of /cvs-repository/Products/Basket/tests
In directory cvs.zope.org:/tmp/cvs-serv20828/tests
Modified Files:
testBasket.py
Log Message:
Change meta type of Egg Product, give EggProduct a different "installed" icon, make it possible to point entry points and non-callables.
=== Products/Basket/tests/testBasket.py 1.13 => 1.14 ===
--- Products/Basket/tests/testBasket.py:1.13 Tue Nov 8 23:24:19 2005
+++ Products/Basket/tests/testBasket.py Wed Nov 9 14:39:24 2005
@@ -2,10 +2,10 @@
import os
import sys
import copy
-import pkg_resources
import Products
from Products.Basket.utils import EggProductContext
from Products.Basket import get_containing_package
+from Products.Basket import pkg_resources
from OFS.ObjectManager import ObjectManager
from OFS.SimpleItem import SimpleItem
from OFS.Folder import Folder
@@ -171,7 +171,7 @@
# don't consider other eggs that happen to be on the path, only
# test that we find the things that are in our fixture dir
actual = [ dist.key for dist in distributions if dist.key in expected ]
- self.assertEqual(expected, actual)
+ self.assertEqual(sorted(expected), sorted(actual))
def test_preinitalize_pdist_file_success(self):
basket = self._makeOne()
@@ -603,6 +603,10 @@
self.test_image_resource(module='Products.diskproduct1')
+def sorted(L):
+ L.sort()
+ return L
+
def test_suite():
from unittest import TestSuite, makeSuite
suite = TestSuite()
@@ -611,3 +615,4 @@
suite.addTest(makeSuite(TestResource))
suite.addTest(makeSuite(TestEggProduct))
return suite
+
More information about the Zope-CVS
mailing list