[Checkins] SVN: zc.zlibstorage/trunk/src/zc/zlibstorage/tests.py Added a test to make sure we can have zlib storages on both client and
Jim Fulton
jim at zope.com
Thu May 27 11:04:09 EDT 2010
Log message for revision 112782:
Added a test to make sure we can have zlib storages on both client and
server (as opposed to a zlib storage on the client and a serverzlib
storage on the server.)
Changed:
U zc.zlibstorage/trunk/src/zc/zlibstorage/tests.py
-=-
Modified: zc.zlibstorage/trunk/src/zc/zlibstorage/tests.py
===================================================================
--- zc.zlibstorage/trunk/src/zc/zlibstorage/tests.py 2010-05-27 13:30:02 UTC (rev 112781)
+++ zc.zlibstorage/trunk/src/zc/zlibstorage/tests.py 2010-05-27 15:04:08 UTC (rev 112782)
@@ -369,8 +369,15 @@
</zlibstorage>
"""
-class FileStorageClientZlibTests(FileStorageZEOZlibTests):
+class FileStorageClientZlibZEOZlibTests(FileStorageZEOZlibTests):
+ def _wrap_client(self, client):
+ return zc.zlibstorage.ZlibStorage(client)
+
+class FileStorageClientZlibZEOServerZlibTests(
+ FileStorageClientZlibZEOZlibTests
+ ):
+
def getConfig(self):
return """\
%import zc.zlibstorage
@@ -381,9 +388,6 @@
</serverzlibstorage>
"""
- def _wrap_client(self, client):
- return zc.zlibstorage.ZlibStorage(client)
-
def test_suite():
suite = unittest.TestSuite()
for class_ in (
@@ -391,7 +395,8 @@
FileStorageZlibTestsWithBlobsEnabled,
FileStorageZlibRecoveryTest,
FileStorageZEOZlibTests,
- FileStorageClientZlibTests,
+ FileStorageClientZlibZEOZlibTests,
+ FileStorageClientZlibZEOServerZlibTests,
):
s = unittest.makeSuite(class_, "check")
s.layer = ZODB.tests.util.MininalTestLayer(
More information about the checkins
mailing list