[Zope-Checkins] CVS: Products/Transience/tests - testTimeoutRelated.py:1.11.2.3

Chris McDonough chrism at plope.com
Sat Jul 3 20:21:02 EDT 2004


Update of /cvs-repository/Products/Transience/tests
In directory cvs.zope.org:/tmp/cvs-serv6731/tests

Modified Files:
      Tag: Zope-2_7-branch
	testTimeoutRelated.py 
Log Message:
Fix for http://zope.org/Collectors/Zope/1403 (Transience._getCallback raises a 
NameError when the callback can't be found)


=== Products/Transience/tests/testTimeoutRelated.py 1.11.2.2 => 1.11.2.3 ===
--- Products/Transience/tests/testTimeoutRelated.py:1.11.2.2	Sun May 30 03:56:35 2004
+++ Products/Transience/tests/testTimeoutRelated.py	Sat Jul  3 20:21:01 2004
@@ -117,6 +117,10 @@
         self.assertEqual(type(k), type(now))
         self.assert_(k <= now)
 
+    def testMissingCallbackGetCallbackReturnsNone(self):
+        # in response to http://zope.org/Collectors/Zope/1403
+        self.assertEqual(None, self.app.sm._getCallback('/foo/bar/baz'))
+
 def addNotificationTarget(item, context):
     item['starttime'] = fauxtime.time()
 



More information about the Zope-Checkins mailing list