summaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2014-08-25 22:44:54 -0700
committerJeff Forcier <jeff@bitprophet.org>2014-08-25 22:44:54 -0700
commit12e752d11aa22ee6ba959115725e386ca779c1cb (patch)
tree2f3970fa9c4593297d75e6f28b56885069288fc9 /tests
parent5fc6969e23ec5e013f432e4efbe12d771150c1e1 (diff)
Rework re #239 to work off post-1.13 codebase. Closes #239
Diffstat (limited to 'tests')
-rw-r--r--tests/test_util.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_util.py b/tests/test_util.py
index 6bde4045..ecf8db72 100644
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -338,3 +338,9 @@ IdentityFile something_%l_using_fqdn
"""
config = paramiko.util.parse_ssh_config(StringIO(test_config))
assert config.lookup('meh') # will die during lookup() if bug regresses
+
+ def test_13_config_dos_crlf_succeeds(self):
+ config_file = StringIO("host abcqwerty\r\nHostName 127.0.0.1\r\n")
+ config = paramiko.SSHConfig()
+ config.parse(config_file)
+ self.assertEqual(config.lookup("abcqwerty")["hostname"], "127.0.0.1")