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

Casey Duncan casey@zope.com
Wed, 27 Mar 2002 15:51:51 -0500


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

Modified Files:
      Tag: casey-death_to_index_html-branch
	testTransientObject.py 
Log Message:
Updating branch to head for testing


=== Zope/lib/python/Products/Transience/tests/testTransientObject.py 1.4 => 1.4.34.1 ===
         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()