[Neo-report] r2397 vincent - in /trunk/neo/tests: ./ client/ master/ storage/
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Nov 2 11:16:36 CET 2010
Author: vincent
Date: Tue Nov 2 11:16:35 2010
New Revision: 2397
Log:
Remove no-op (pass or call superclass) overloading methods.
Modified:
trunk/neo/tests/client/testMasterHandler.py
trunk/neo/tests/master/testClientHandler.py
trunk/neo/tests/master/testMasterApp.py
trunk/neo/tests/master/testRecovery.py
trunk/neo/tests/master/testStorageHandler.py
trunk/neo/tests/master/testVerification.py
trunk/neo/tests/storage/testClientHandler.py
trunk/neo/tests/storage/testInitializationHandler.py
trunk/neo/tests/storage/testMasterHandler.py
trunk/neo/tests/storage/testStorageApp.py
trunk/neo/tests/storage/testStorageHandler.py
trunk/neo/tests/storage/testVerificationHandler.py
trunk/neo/tests/testBootstrap.py
trunk/neo/tests/testConnection.py
trunk/neo/tests/testEvent.py
trunk/neo/tests/testProtocol.py
Modified: trunk/neo/tests/client/testMasterHandler.py
==============================================================================
--- trunk/neo/tests/client/testMasterHandler.py [iso-8859-1] (original)
+++ trunk/neo/tests/client/testMasterHandler.py [iso-8859-1] Tue Nov 2 11:16:35 2010
@@ -30,9 +30,6 @@ MARKER = []
class MasterHandlerTests(NeoUnitTestBase):
- def setUp(self):
- pass
-
def getConnection(self):
return self.getFakeConnection()
Modified: trunk/neo/tests/master/testClientHandler.py
==============================================================================
--- trunk/neo/tests/master/testClientHandler.py [iso-8859-1] (original)
+++ trunk/neo/tests/master/testClientHandler.py [iso-8859-1] Tue Nov 2 11:16:35 2010
@@ -46,9 +46,6 @@ class MasterClientHandlerTests(NeoUnitTe
kw = {'uuid':self.getNewUUID(), 'address': self.master_address}
self.app.nm.createStorage(**kw)
- def tearDown(self):
- NeoUnitTestBase.tearDown(self)
-
def getLastUUID(self):
return self.uuid
Modified: trunk/neo/tests/master/testMasterApp.py
==============================================================================
--- trunk/neo/tests/master/testMasterApp.py [iso-8859-1] (original)
+++ trunk/neo/tests/master/testMasterApp.py [iso-8859-1] Tue Nov 2 11:16:35 2010
@@ -29,9 +29,6 @@ class MasterAppTests(NeoUnitTestBase):
self.app = Application(config)
self.app.pt.clear()
- def tearDown(self):
- NeoUnitTestBase.tearDown(self)
-
def test_06_broadcastNodeInformation(self):
# defined some nodes to which data will be send
master_uuid = self.getNewUUID()
Modified: trunk/neo/tests/master/testRecovery.py
==============================================================================
--- trunk/neo/tests/master/testRecovery.py [iso-8859-1] (original)
+++ trunk/neo/tests/master/testRecovery.py [iso-8859-1] Tue Nov 2 11:16:35 2010
@@ -43,9 +43,6 @@ class MasterRecoveryTests(NeoUnitTestBas
self.master_address = ('127.0.0.1', self.master_port)
self.storage_address = ('127.0.0.1', self.storage_port)
- def tearDown(self):
- NeoUnitTestBase.tearDown(self)
-
# Common methods
def getLastUUID(self):
return self.uuid
Modified: trunk/neo/tests/master/testStorageHandler.py
==============================================================================
--- trunk/neo/tests/master/testStorageHandler.py [iso-8859-1] (original)
+++ trunk/neo/tests/master/testStorageHandler.py [iso-8859-1] Tue Nov 2 11:16:35 2010
@@ -43,9 +43,6 @@ class MasterStorageHandlerTests(NeoUnitT
self.client_address = ('127.0.0.1', self.client_port)
self.storage_address = ('127.0.0.1', self.storage_port)
- def tearDown(self):
- NeoUnitTestBase.tearDown(self)
-
def _allocatePort(self):
self.port = getattr(self, 'port', 1000) + 1
return self.port
Modified: trunk/neo/tests/master/testVerification.py
==============================================================================
--- trunk/neo/tests/master/testVerification.py [iso-8859-1] (original)
+++ trunk/neo/tests/master/testVerification.py [iso-8859-1] Tue Nov 2 11:16:35 2010
@@ -44,9 +44,6 @@ class MasterVerificationTests(NeoUnitTes
self.master_address = ('127.0.0.1', self.master_port)
self.storage_address = ('127.0.0.1', self.storage_port)
- def tearDown(self):
- NeoUnitTestBase.tearDown(self)
-
# Common methods
def getLastUUID(self):
return self.uuid
Modified: trunk/neo/tests/storage/testClientHandler.py
==============================================================================
--- trunk/neo/tests/storage/testClientHandler.py [iso-8859-1] (original)
+++ trunk/neo/tests/storage/testClientHandler.py [iso-8859-1] Tue Nov 2 11:16:35 2010
@@ -54,9 +54,6 @@ class StorageClientHandlerTests(NeoUnitT
self.app.primary_master_node = pmn
self.master_port = 10010
- def tearDown(self):
- NeoUnitTestBase.tearDown(self)
-
def _getConnection(self, uuid=None):
return self.getFakeConnection(uuid=uuid, address=('127.0.0.1', 1000))
Modified: trunk/neo/tests/storage/testInitializationHandler.py
==============================================================================
--- trunk/neo/tests/storage/testInitializationHandler.py [iso-8859-1] (original)
+++ trunk/neo/tests/storage/testInitializationHandler.py [iso-8859-1] Tue Nov 2 11:16:35 2010
@@ -42,9 +42,6 @@ class StorageInitializationHandlerTests(
self.app.load_lock_dict = {}
self.app.pt = PartitionTable(self.num_partitions, self.num_replicas)
- def tearDown(self):
- NeoUnitTestBase.tearDown(self)
-
# Common methods
def getLastUUID(self):
return self.uuid
Modified: trunk/neo/tests/storage/testMasterHandler.py
==============================================================================
--- trunk/neo/tests/storage/testMasterHandler.py [iso-8859-1] (original)
+++ trunk/neo/tests/storage/testMasterHandler.py [iso-8859-1] Tue Nov 2 11:16:35 2010
@@ -52,9 +52,6 @@ class StorageMasterHandlerTests(NeoUnitT
self.app.primary_master_node = pmn
self.master_port = 10010
- def tearDown(self):
- NeoUnitTestBase.tearDown(self)
-
def getMasterConnection(self):
address = ("127.0.0.1", self.master_port)
return self.getFakeConnection(uuid=self.master_uuid, address=address)
Modified: trunk/neo/tests/storage/testStorageApp.py
==============================================================================
--- trunk/neo/tests/storage/testStorageApp.py [iso-8859-1] (original)
+++ trunk/neo/tests/storage/testStorageApp.py [iso-8859-1] Tue Nov 2 11:16:35 2010
@@ -33,9 +33,6 @@ class StorageAppTests(NeoUnitTestBase):
self.app = Application(config)
self.app.event_queue = deque()
- def tearDown(self):
- NeoUnitTestBase.tearDown(self)
-
def test_01_loadPartitionTable(self):
self.app.dm = Mock({
'getPartitionTable': [],
Modified: trunk/neo/tests/storage/testStorageHandler.py
==============================================================================
--- trunk/neo/tests/storage/testStorageHandler.py [iso-8859-1] (original)
+++ trunk/neo/tests/storage/testStorageHandler.py [iso-8859-1] Tue Nov 2 11:16:35 2010
@@ -51,9 +51,6 @@ class StorageStorageHandlerTests(NeoUnit
self.app.primary_master_node = pmn
self.master_port = 10010
- def tearDown(self):
- NeoUnitTestBase.tearDown(self)
-
def test_18_askTransactionInformation1(self):
# transaction does not exists
conn = self.getFakeConnection()
Modified: trunk/neo/tests/storage/testVerificationHandler.py
==============================================================================
--- trunk/neo/tests/storage/testVerificationHandler.py [iso-8859-1] (original)
+++ trunk/neo/tests/storage/testVerificationHandler.py [iso-8859-1] Tue Nov 2 11:16:35 2010
@@ -44,10 +44,6 @@ class StorageVerificationHandlerTests(Ne
self.app.load_lock_dict = {}
self.app.pt = PartitionTable(self.num_partitions, self.num_replicas)
-
- def tearDown(self):
- NeoUnitTestBase.tearDown(self)
-
# Common methods
def getLastUUID(self):
return self.uuid
Modified: trunk/neo/tests/testBootstrap.py
==============================================================================
--- trunk/neo/tests/testBootstrap.py [iso-8859-1] (original)
+++ trunk/neo/tests/testBootstrap.py [iso-8859-1] Tue Nov 2 11:16:35 2010
@@ -36,9 +36,6 @@ class BootstrapManagerTests(NeoUnitTestB
self.num_partitions = 1009
self.num_replicas = 2
- def tearDown(self):
- NeoUnitTestBase.tearDown(self)
-
# Common methods
def getLastUUID(self):
return self.uuid
Modified: trunk/neo/tests/testConnection.py
==============================================================================
--- trunk/neo/tests/testConnection.py [iso-8859-1] (original)
+++ trunk/neo/tests/testConnection.py [iso-8859-1] Tue Nov 2 11:16:35 2010
@@ -37,9 +37,6 @@ class ConnectionTests(NeoUnitTestBase):
self.handler = Mock({'__repr__': 'Fake Handler'})
self.address = ("127.0.0.7", 93413)
- def tearDown(self):
- pass
-
def _makeListeningConnection(self, addr):
# create instance after monkey patches
self.connector = DoNothingConnector()
Modified: trunk/neo/tests/testEvent.py
==============================================================================
--- trunk/neo/tests/testEvent.py [iso-8859-1] (original)
+++ trunk/neo/tests/testEvent.py [iso-8859-1] Tue Nov 2 11:16:35 2010
@@ -23,12 +23,6 @@ from neo.event import EpollEventManager
class EventTests(NeoUnitTestBase):
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
def test_01_EpollEventManager(self):
# init one
em = EpollEventManager()
Modified: trunk/neo/tests/testProtocol.py
==============================================================================
--- trunk/neo/tests/testProtocol.py [iso-8859-1] (original)
+++ trunk/neo/tests/testProtocol.py [iso-8859-1] Tue Nov 2 11:16:35 2010
@@ -26,9 +26,6 @@ class ProtocolTests(NeoUnitTestBase):
def setUp(self):
self.ltid = None
- def tearDown(self):
- pass
-
def getNextTID(self):
self.ltid = super(ProtocolTests, self).getNextTID(self.ltid)
return self.ltid
More information about the Neo-report
mailing list