diff options
author | Red_M <pooatyou.com@gmail.com> | 2018-05-20 19:28:30 +1000 |
---|---|---|
committer | Red_M <pooatyou.com@gmail.com> | 2018-05-20 19:28:30 +1000 |
commit | e9af652cab7d564f3799c9a6f5de5ac6922d217c (patch) | |
tree | 16a9a370226ab61e52783b405f8424120bf96eb0 /tests/test_pxssh.py | |
parent | de75d14a842027d28e1468de99083aa2f9382670 (diff) | |
download | pexpect-git-e9af652cab7d564f3799c9a6f5de5ac6922d217c.tar.gz |
Add test cases for #429 and fix feature for #429.
Diffstat (limited to 'tests/test_pxssh.py')
-rw-r--r-- | tests/test_pxssh.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_pxssh.py b/tests/test_pxssh.py index 285ec73..452e997 100644 --- a/tests/test_pxssh.py +++ b/tests/test_pxssh.py @@ -85,6 +85,13 @@ class PxsshTestCase(SSHTestBase): if confirmation_strings!=len(confirmation_array): assert False, 'String generated from remote tunneling is incorrect.' + def test_ssh_config_passing_string(self): + ssh = pxssh.pxssh(debug_command_string=True) + config_path = '/fakepath/fake/config_file' + string = ssh.login('server', 'me', password='s3cret', spawn_local_ssh=False, ssh_config=config_path) + if not '-F '+config_path in string: + assert False, 'String generated from SSH config passing is incorrect.' + def test_ssh_key_string(self): ssh = pxssh.pxssh(debug_command_string=True) confirmation_strings = 0 |