[Zope3-checkins] CVS: Zope3/src/zope/app/workflow/tests -
test_instance.py:1.3
Jim Fulton
jim at zope.com
Sun Sep 21 13:34:05 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/workflow/tests
In directory cvs.zope.org:/tmp/cvs-serv15883/src/zope/app/workflow/tests
Modified Files:
test_instance.py
Log Message:
Changed to use __setitem__ rather than setObject
=== Zope3/src/zope/app/workflow/tests/test_instance.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/workflow/tests/test_instance.py:1.2 Fri Jun 6 15:29:08 2003
+++ Zope3/src/zope/app/workflow/tests/test_instance.py Sun Sep 21 13:34:04 2003
@@ -57,9 +57,9 @@
self.assertEqual(pica.items(), [])
self.assertEqual(pica.values(), [])
self.assertEqual(pica.get('nothing', 1), 1)
- self.assertRaises(TypeError, pica.setObject, 123, None)
+ self.assertRaises(TypeError, pica.__setitem__, 123, None)
- pica.setObject('dummy', di)
+ pica['dummy'] = di
self.assertEqual(len(pica), 1)
self.assertEqual(pica.keys(), ['dummy'])
self.assertEqual(pica.values(), [di])
More information about the Zope3-Checkins
mailing list