def __init__(self, methodName='runTest'): SocketConnectedTest.__init__(self, methodName=methodName)
def clientTearDown(self): self.cli_file.close() self.assertTrue(self.cli_file.closed) self.cli_file = None SocketConnectedTest.clientTearDown(self)
def __init__ (self, methodName = 'runTest'): SocketConnectedTest.__init__(self, methodName = methodName)
def tearDown(self): self.serv_file.close() self.assertTrue(self.serv_file.closed) self.serv_file = None SocketConnectedTest.tearDown(self)
def clientSetUp(self): SocketConnectedTest.clientSetUp(self) self.cli_file = self.serv_conn.makefile('wb')
def setUp(self): SocketConnectedTest.setUp(self) self.serv_file = self.cli_conn.makefile('rb', self.bufsize)
def clientTearDown (self): self.cli_file.close() self.assertTrue(self.cli_file.closed) self.cli_file = None SocketConnectedTest.clientTearDown(self)
def clientSetUp (self): SocketConnectedTest.clientSetUp(self) self.cli_file = self.serv_conn.makefile('wb')
def tearDown (self): self.serv_file.close() self.assertTrue(self.serv_file.closed) self.serv_file = None SocketConnectedTest.tearDown(self)
def setUp (self): SocketConnectedTest.setUp(self) self.serv_file = self.cli_conn.makefile('rb', self.bufsize)