[Zope3-checkins] CVS: zopeproducts/photoslide/tests - test_photoslide.py:1.2

Bjorn Tillenius bjoti777 at student.liu.se
Sun Sep 21 18:18:17 EDT 2003


Update of /cvs-repository/zopeproducts/photoslide/tests
In directory cvs.zope.org:/tmp/cvs-serv27288/tests

Modified Files:
	test_photoslide.py 
Log Message:
Updated code to work after ParentGeddon and ReplaceSetObjectWithSetitem.


=== zopeproducts/photoslide/tests/test_photoslide.py 1.1 => 1.2 ===
--- zopeproducts/photoslide/tests/test_photoslide.py:1.1	Fri Aug 15 08:15:22 2003
+++ zopeproducts/photoslide/tests/test_photoslide.py	Sun Sep 21 18:18:16 2003
@@ -22,12 +22,12 @@
 from zope.app.container.tests.test_icontainer import DefaultTestData
 from zope.app.content.tests.test_image import zptlogo
 from zope.app.content.image import Image
+from zope.app.services.tests.placefulsetup import PlacefulSetup
 from zope.interface.verify import verifyObject
-from zope.app import zapi
 
 small_image = Image(zptlogo)
 
-class TestPhotoSlide(BaseTestIContainer, unittest.TestCase):
+class TestPhotoSlide(PlacefulSetup, BaseTestIContainer, unittest.TestCase):
 
     def makeTestObject(self):
         from zopeproducts.photoslide import PhotoSlide
@@ -72,9 +72,9 @@
         aPhoto = Photo()
         anotherPhoto = Photo()
         yetAnotherPhoto = Photo()
-        photoSlide.setObject('a', aPhoto)
-        photoSlide.setObject('b', anotherPhoto)
-        photoSlide.setObject('c', yetAnotherPhoto)
+        photoSlide['a'] = aPhoto
+        photoSlide['b'] = anotherPhoto
+        photoSlide['c'] = yetAnotherPhoto
         self.assertEqual(photoSlide.getPosition('a'), 1)
         self.assertEqual(photoSlide.getPosition('b'), 2)
         self.assertEqual(photoSlide.getPosition('c'), 3)




More information about the Zope3-Checkins mailing list