[Checkins] SVN: gocept.zeoraid/branches/distributed-remote-calls/src/gocept/zeoraid/tests/test_basics.py Reverting last changes on the tests

Dirceu Pereira Tiegs dirceutiegs at gmail.com
Mon Jun 23 10:03:59 EDT 2008


Log message for revision 87668:
  Reverting last changes on the tests

Changed:
  U   gocept.zeoraid/branches/distributed-remote-calls/src/gocept/zeoraid/tests/test_basics.py

-=-
Modified: gocept.zeoraid/branches/distributed-remote-calls/src/gocept/zeoraid/tests/test_basics.py
===================================================================
--- gocept.zeoraid/branches/distributed-remote-calls/src/gocept/zeoraid/tests/test_basics.py	2008-06-23 14:00:43 UTC (rev 87667)
+++ gocept.zeoraid/branches/distributed-remote-calls/src/gocept/zeoraid/tests/test_basics.py	2008-06-23 14:03:59 UTC (rev 87668)
@@ -70,16 +70,7 @@
 
 class ZEOStorageBackendTests(StorageTestBase.StorageTestBase):
 
-    def logApplyStorageCalls(self, fn, *args, **kwargs):
-        l = self._log
-        def loggedMethod(*args, **kwargs):
-            storage_name = str([i.name for i in args[1]])
-            l.append("Calling %s on Storage %s" % (fn.__name__, storage_name))
-            return fn(*args, **kwargs)
-        return loggedMethod
-
     def open(self, **kwargs):
-        gocept.zeoraid.storage.RAIDStorage = self.logApplyStorageCalls(gocept.zeoraid.storage.RAIDStorage)
         self._storage = gocept.zeoraid.storage.RAIDStorage('teststorage',
                                                            self._storages, **kwargs)
 
@@ -88,7 +79,6 @@
         self._servers = []
         self._pids = []
         self._storages = []
-        self._log = []
         for i in xrange(5):
             port = get_port()
             zconf = forker.ZEOConfig(('', port))
@@ -1381,19 +1371,9 @@
     pass
 
 
-class DistributedCallsTests(ZEOStorageBackendTests):
-    def test_getSize_calls(self):
-        for i in range(20):
-            self._storage.getSize()
-        print
-        print "XXXXXXXXXXXXXX"
-        print self._log
-        print "XXXXXXXXXXXXXX"
-
 def test_suite():
     suite = unittest.TestSuite()
     suite.addTest(unittest.makeSuite(ZEOReplicationStorageTests, "check"))
     suite.addTest(unittest.makeSuite(FailingStorageTests))
     suite.addTest(unittest.makeSuite(FailingStorageSharedBlobTests))
-    suite.addTest(unittest.makeSuite(DistributedCallsTests))
     return suite



More information about the Checkins mailing list