summaryrefslogtreecommitdiffhomepage
path: root/tests/test_util.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2015-10-30 11:13:24 -0700
committerJeff Forcier <jeff@bitprophet.org>2015-10-30 11:13:24 -0700
commitfa631508e4e736f2cc5dc61c3c5c2c259ea4422f (patch)
tree49f2392384d4659c18f4be1d06e09f3c774b7c1a /tests/test_util.py
parent53e91cc449ff3070cd57af2ed317a17a47d378e1 (diff)
parent0b9d772a21a44af38ecceae0fdbae645e386bd9b (diff)
Merge branch 'master' into 596-int
Diffstat (limited to 'tests/test_util.py')
-rw-r--r--tests/test_util.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/test_util.py b/tests/test_util.py
index 7f68de21..bfdc525e 100644
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -464,3 +464,23 @@ Host param3 parara
assert safe_vanilla == vanilla, err.format(safe_vanilla, vanilla)
assert safe_has_bytes == expected_bytes, \
err.format(safe_has_bytes, expected_bytes)
+
+ def test_proxycommand_none_issue_418(self):
+ test_config_file = """
+Host proxycommand-standard-none
+ ProxyCommand None
+
+Host proxycommand-with-equals-none
+ ProxyCommand=None
+ """
+ for host, values in {
+ 'proxycommand-standard-none': {'hostname': 'proxycommand-standard-none'},
+ 'proxycommand-with-equals-none': {'hostname': 'proxycommand-with-equals-none'}
+ }.items():
+
+ f = StringIO(test_config_file)
+ config = paramiko.util.parse_ssh_config(f)
+ self.assertEqual(
+ paramiko.util.lookup_ssh_host_config(host, config),
+ values
+ )