[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Caching/RAMCache/tests - test_RAMCache.py:1.4

Albertas Agejevas alga@codeworks.lt
Wed, 27 Nov 2002 12:37:50 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/Caching/RAMCache/tests
In directory cvs.zope.org:/tmp/cvs-serv6055

Modified Files:
	test_RAMCache.py 
Log Message:
Added extra info to the assertions in order to probe the weird errors
in the tests on Windows.

=== Zope3/lib/python/Zope/App/Caching/RAMCache/tests/test_RAMCache.py 1.3 => 1.4 ===
--- Zope3/lib/python/Zope/App/Caching/RAMCache/tests/test_RAMCache.py:1.3	Mon Nov 25 08:48:06 2002
+++ Zope3/lib/python/Zope/App/Caching/RAMCache/tests/test_RAMCache.py	Wed Nov 27 12:37:49 2002
@@ -88,10 +88,15 @@
         self.assertEqual(storage1, storage2,
                          "_getStorage returns different storages")
 
-        self.assertEqual(storage1.maxAge, 123, "maxAge not set")
-        self.assertEqual(storage1.maxEntries, 2002, "maxEntries not set")
+        self.assertEqual(storage1.maxAge, 123,
+                         "maxAge not set (expected 123, got %s)"
+                         % storage1.maxAge)
+        self.assertEqual(storage1.maxEntries, 2002,
+                         "maxEntries not set (expected 2002, got %s)"
+                         % storage1.maxEntries)
         self.assertEqual(storage1.cleanupInterval, 42,
-                         "cleanupInterval not set")
+                         "cleanupInterval not set (expected 42, got %s)"
+                         % storage1.cleanupInterval)
 
         # Simulate persisting and restoring the RamCache which removes
         # all _v_ attributes.