[CMF-checkins] CVS: CMF/CMFSetup/tests - test_context.py:1.10
Tres Seaver
tseaver at zope.com
Tue Jul 20 17:53:21 EDT 2004
Update of /cvs-repository/CMF/CMFSetup/tests
In directory cvs.zope.org:/tmp/cvs-serv13231/tests
Modified Files:
test_context.py
Log Message:
- Normalize timestamp semantics for getLastModified.
=== CMF/CMFSetup/tests/test_context.py 1.9 => 1.10 ===
--- CMF/CMFSetup/tests/test_context.py:1.9 Tue Jul 20 12:13:52 2004
+++ CMF/CMFSetup/tests/test_context.py Tue Jul 20 17:53:20 2004
@@ -96,7 +96,9 @@
site = DummySite( 'site' ).__of__( self.root )
ctx = self._makeOne( site, self._PROFILE_PATH )
- self.assertEqual( ctx.getLastModified( FILENAME ), timestamp )
+ lm = ctx.getLastModified( FILENAME )
+ self.failUnless( isinstance( lm, DateTime ) )
+ self.assertEqual( lm, timestamp )
def test_getLastModified_subdir( self ):
@@ -110,7 +112,9 @@
site = DummySite( 'site' ).__of__( self.root )
ctx = self._makeOne( site, self._PROFILE_PATH )
- self.assertEqual( ctx.getLastModified( FILENAME ), timestamp )
+ lm = ctx.getLastModified( FILENAME )
+ self.failUnless( isinstance( lm, DateTime ) )
+ self.assertEqual( lm, timestamp )
def test_getLastModified_directory( self ):
@@ -125,7 +129,9 @@
site = DummySite( 'site' ).__of__( self.root )
ctx = self._makeOne( site, self._PROFILE_PATH )
- self.assertEqual( ctx.getLastModified( SUBDIR ), timestamp )
+ lm = ctx.getLastModified( SUBDIR )
+ self.failUnless( isinstance( lm, DateTime ) )
+ self.assertEqual( lm, timestamp )
def test_isDirectory_nonesuch( self ):
More information about the CMF-checkins
mailing list