Commit 5a9a5d56 authored by Aurel's avatar Aurel

remove unused patch

fix class name


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@291 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 18226f49
......@@ -63,7 +63,7 @@ ClientConnection.addPacket = addPacket
ClientConnection.expectMessage = expectMessage
class MasterServiceTests(unittest.TestCase):
class MasterElectionTests(unittest.TestCase):
def setUp(self):
logging.basicConfig(level = logging.DEBUG)
......
......@@ -50,20 +50,7 @@ from neo.node import MasterNode, StorageNode
from neo.master.tests.connector import DoNothingConnector
from neo.connection import ClientConnection
# patch connection so that we can register addPacket messages
# in mock object
def addPacket(self, packet):
if self.connector is not None:
self.connector.addPacket(packet)
def expectMessage(self, packet):
if self.connector is not None:
self.connector.expectMessage(packet)
ClientConnection.addPacket = addPacket
ClientConnection.expectMessage = expectMessage
class MasterServiceTests(unittest.TestCase):
class MasterRecoveryTests(unittest.TestCase):
def setUp(self):
logging.basicConfig(level = logging.DEBUG)
......
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