[Zope3-checkins] CVS: Zope3/src/zope/app/workflow/stateful/tests - test_contentworkflow.py:1.5

Philipp von Weitershausen philikon at philikon.de
Sun Aug 3 19:06:32 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/workflow/stateful/tests
In directory cvs.zope.org:/tmp/cvs-serv21896/workflow/stateful/tests

Modified Files:
	test_contentworkflow.py 
Log Message:
Changed the order insensitive test according to Tres's suggestion.


=== Zope3/src/zope/app/workflow/stateful/tests/test_contentworkflow.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/workflow/stateful/tests/test_contentworkflow.py:1.4	Sat Aug  2 21:33:10 2003
+++ Zope3/src/zope/app/workflow/stateful/tests/test_contentworkflow.py	Sun Aug  3 18:06:28 2003
@@ -151,11 +151,11 @@
     def test_getInterfacesForProcessName(self):
         manager = self.getManager()
         ifaces = manager.getInterfacesForProcessName(u'default')
-        self.assert_(ifaces == (IFace2, IFace1) or
-                     ifaces == (IFace1, IFace2))
+        self.assertEqual(len(ifaces), 2)
+        for iface in [IFace1, IFace2]:
+            self.failUnless(iface in ifaces)
         self.assertEqual(
-            manager.getInterfacesForProcessName(u'foo'),
-            ())
+            manager.getInterfacesForProcessName(u'foo'), ())
 
     def test_notify(self):
         # setup ProcessDefinitions




More information about the Zope3-Checkins mailing list