def setUp(self):
    super().setUp()
    self.patch('zaza.utilities.installers.make_ssh_fn', name='mock_make_ssh_fn')
    self.mock_ssh_fn = mock.Mock()
    self.mock_make_ssh_fn = self.mock_ssh_fn
    self.patch('zaza.utilities.installers.make_scp_fn', name='mock_make_scp_fn')
    self.mock_scp_fn = mock.Mock()
    self.mock_make_scp_fn = self.mock_scp_fn
    self.c = conncheck.ConnCheckInstanceSSH(address='1.2.3.4', key_file='a-file', user='a-user', module_source='/some/source', collection='a-collection')
def setUp(self):
    super().setUp()
    self.patch('zaza.utilities.installers.make_ssh_fn', name='mock_make_ssh_fn')
    self.mock_ssh_fn = mock.Mock()
    self.mock_make_ssh_fn = self.mock_ssh_fn
    self.patch('zaza.utilities.installers.make_scp_fn', name='mock_make_scp_fn')
    self.mock_scp_fn = mock.Mock()
    self.mock_make_scp_fn = self.mock_scp_fn
    self.c = conncheck.ConnCheckInstanceSSH(address='1.2.3.4', key_file='a-file', user='a-user', module_source='/some/source', collection='a-collection')