[Zope3-checkins] CVS: Zope3/src/zope/app/content/tests - test_image.py:1.4

Steve Alexander steve@cat-box.net
Mon, 30 Dec 2002 09:03:31 -0500


Update of /cvs-repository/Zope3/src/zope/app/content/tests
In directory cvs.zope.org:/tmp/cvs-serv23914/src/zope/app/content/tests

Modified Files:
	test_image.py 
Log Message:
Large refactoring of the event service.


=== Zope3/src/zope/app/content/tests/test_image.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/content/tests/test_image.py:1.3	Fri Dec 27 14:19:09 2002
+++ Zope3/src/zope/app/content/tests/test_image.py	Mon Dec 30 09:02:59 2002
@@ -95,6 +95,12 @@
         self.assertEqual(s.sizeForSorting(), ('byte', 78))
         self.assertEqual(s.sizeForDisplay(), u'1 KB 34x56')
 
+    def test_unknownSize(self):
+        from zope.app.content.image import ImageSized
+        s = ImageSized(DummyImage(-1, -1, 23))
+        self.assertEqual(s.sizeForSorting(), ('byte', 23))
+        self.assertEqual(s.sizeForDisplay(), u'1 KB ?x?')
+
 def test_suite():
     return unittest.TestSuite((unittest.makeSuite(TestImage),
                                unittest.makeSuite(TestSized)