97
99
def connect_ssh(self, username, password, host, port, command):
98
100
self.calls.append(('connect_ssh', username, password, host, port,
104
106
"""The first connection will be considered closed.
106
108
The second connection will succeed normally.
109
111
def __init__(self, read_from, write_to, fail_at_write=True):
112
114
self.fail_at_write = fail_at_write