[Zope-Checkins] CVS: Zope/lib/python/Products/Transience/tests - testTransientObject.py:1.5

Chris McDonough chrism@zope.com
Sat, 23 Mar 2002 23:44:33 -0500


Update of /cvs-repository/Zope/lib/python/Products/Transience/tests
In directory cvs.zope.org:/tmp/cvs-serv1005/tests

Modified Files:
	testTransientObject.py 
Log Message:
Merging 2-5 branch transience changes to trunk.


=== Zope/lib/python/Products/Transience/tests/testTransientObject.py 1.4 => 1.5 ===
         assert t.getCreated() <= ft
 
+    def test_getLastModifiedUnset(self):
+        t = self.t.new('xyzzy')
+        assert t.getLastModified() == None
+
+    def test_getLastModifiedSet(self):
+        t = self.t.new('xyzzy')
+        t['a'] = 1
+        assert t.getLastModified() is not None
+
+    def testSetLastModified(self):
+        t = self.t.new('xyzzy')
+        ft = fauxtime.time()
+        t.setLastModified()
+        assert t.getLastModified() is not None
+
     def test_setLastAccessed(self):
         t = self.t.new('xyzzy')
         ft = fauxtime.time()