[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/tests - testContents.py:1.8

runyaga runyaga@thisbox.com
Tue, 3 Dec 2002 11:14:10 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/tests
In directory cvs.zope.org:/tmp/cvs-serv18273/tests

Modified Files:
	testContents.py 
Log Message:
lots of work to just modify the time ;-).
ideally this formatTime will be moved and will 
get its format from some service 


=== Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/tests/testContents.py 1.7 => 1.8 ===
--- Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/tests/testContents.py:1.7	Mon Nov 18 18:52:59 2002
+++ Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/tests/testContents.py	Tue Dec  3 11:14:09 2002
@@ -77,7 +77,7 @@
 
         from datetime import datetime
         from Zope.App.DublinCore.IZopeDublinCore import IZopeDublinCore
-
+        from Zope.App.OFS.Container.Views.Browser.Contents import formatTime
         class FauxDCAdapter:
             __implements__ = IZopeDublinCore
             
@@ -86,7 +86,7 @@
             title = 'faux title'
             created = datetime(2001, 1, 1, 1, 1, 1)
             modified = datetime(2002, 2, 2, 2, 2, 2)
-
+            
         from Zope.ComponentArchitecture.GlobalAdapterService \
              import provideAdapter
         provideAdapter(IDocument, IZopeDublinCore, FauxDCAdapter)
@@ -98,8 +98,8 @@
         self.assertEqual(info['url'], 'document')
         self.assertEqual(info['object'], document)
         self.assertEqual(info['title'], 'faux title')
-        self.assertEqual(info['created'], FauxDCAdapter.created)
-        self.assertEqual(info['modified'], FauxDCAdapter.modified)
+        self.assertEqual(info['created'], formatTime(FauxDCAdapter.created))
+        self.assertEqual(info['modified'], formatTime(FauxDCAdapter.modified))
 
     def testRemove( self ):
         container = self._TestView__newContext()