Commit b7c4924c authored by Vincent Pelletier's avatar Vincent Pelletier

Remove no-op (pass or call superclass) overloading methods.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2397 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent fb08eb82
......@@ -30,9 +30,6 @@ MARKER = []
class MasterHandlerTests(NeoUnitTestBase):
def setUp(self):
pass
def getConnection(self):
return self.getFakeConnection()
......
......@@ -46,9 +46,6 @@ class MasterClientHandlerTests(NeoUnitTestBase):
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
......
......@@ -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()
......
......@@ -43,9 +43,6 @@ class MasterRecoveryTests(NeoUnitTestBase):
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
......
......@@ -43,9 +43,6 @@ class MasterStorageHandlerTests(NeoUnitTestBase):
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
......
......@@ -44,9 +44,6 @@ class MasterVerificationTests(NeoUnitTestBase):
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
......
......@@ -54,9 +54,6 @@ class StorageClientHandlerTests(NeoUnitTestBase):
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))
......
......@@ -42,9 +42,6 @@ class StorageInitializationHandlerTests(NeoUnitTestBase):
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
......
......@@ -52,9 +52,6 @@ class StorageMasterHandlerTests(NeoUnitTestBase):
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)
......
......@@ -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': [],
......
......@@ -51,9 +51,6 @@ class StorageStorageHandlerTests(NeoUnitTestBase):
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()
......
......@@ -44,10 +44,6 @@ class StorageVerificationHandlerTests(NeoUnitTestBase):
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
......
......@@ -36,9 +36,6 @@ class BootstrapManagerTests(NeoUnitTestBase):
self.num_partitions = 1009
self.num_replicas = 2
def tearDown(self):
NeoUnitTestBase.tearDown(self)
# Common methods
def getLastUUID(self):
return self.uuid
......
......@@ -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()
......
......@@ -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()
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment