[Zope3-checkins] CVS: Zope3/src/zope/app/container/tests -
test_size.py:1.3
Stephan Richter
srichter at cosmos.phy.tufts.edu
Wed Aug 6 11:45:42 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/container/tests
In directory cvs.zope.org:/tmp/cvs-serv18235/app/container/tests
Modified Files:
test_size.py
Log Message:
Mainly I18n of the ISized adapters.
=== Zope3/src/zope/app/container/tests/test_size.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/container/tests/test_size.py:1.2 Sat Jun 7 02:37:22 2003
+++ Zope3/src/zope/app/container/tests/test_size.py Wed Aug 6 10:45:08 2003
@@ -40,7 +40,8 @@
obj = DummyContainer(0)
sized = ContainerSized(obj)
self.assertEqual(sized.sizeForSorting(), ('item', 0))
- self.assertEqual(sized.sizeForDisplay(), u'0 items')
+ self.assertEqual(sized.sizeForDisplay(), u'${items} items')
+ self.assertEqual(sized.sizeForDisplay().mapping['items'], '0')
def testOneItem(self):
from zope.app.container.size import ContainerSized
@@ -54,7 +55,8 @@
obj = DummyContainer(2)
sized = ContainerSized(obj)
self.assertEqual(sized.sizeForSorting(), ('item', 2))
- self.assertEqual(sized.sizeForDisplay(), u'2 items')
+ self.assertEqual(sized.sizeForDisplay(), u'${items} items')
+ self.assertEqual(sized.sizeForDisplay().mapping['items'], '2')
def test_suite():
loader = unittest.TestLoader()
More information about the Zope3-Checkins
mailing list