[CMF-checkins] SVN: CMF/branches/regebro-sitemanager/CMFCore/tests/test_localservice.py Simplification of test.

Lennart Regebro regebro at gmail.com
Tue Oct 11 08:55:32 EDT 2005


Log message for revision 39040:
  Simplification of test.
  

Changed:
  U   CMF/branches/regebro-sitemanager/CMFCore/tests/test_localservice.py

-=-
Modified: CMF/branches/regebro-sitemanager/CMFCore/tests/test_localservice.py
===================================================================
--- CMF/branches/regebro-sitemanager/CMFCore/tests/test_localservice.py	2005-10-11 12:49:39 UTC (rev 39039)
+++ CMF/branches/regebro-sitemanager/CMFCore/tests/test_localservice.py	2005-10-11 12:55:31 UTC (rev 39040)
@@ -73,12 +73,8 @@
         self.failUnless(utility.aq_base is dummy2)
         
         # Get both
-        import pdb;pdb.set_trace()
         utilities = service.getUtilitiesFor(IDummyUtility)
-        i = 0
-        for x in utilities.next():
-            i += 1
-        self.failUnlessEqual(i, 2)
+        self.assertEquals(len(list(utilities)), 2)
         
     def test_getUnnamedUtilities(self):
         service = getService(Utilities, self.app.portal)



More information about the CMF-checkins mailing list