summaryrefslogtreecommitdiffhomepage
path: root/tests/test_util.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2014-08-25 22:45:07 -0700
committerJeff Forcier <jeff@bitprophet.org>2014-08-25 22:45:07 -0700
commit4e7c1bba50ac92faa92ba22bc5ce255032cd64bb (patch)
tree8508e5108645dbf09d48b9f6771039a75838643b /tests/test_util.py
parent239ee3716fb245ff905110295494f4a7b5c24688 (diff)
parentbc07b04e8ed4ddf9e97cf80cf39021828b94b3cf (diff)
Merge branch '1.14'
Diffstat (limited to 'tests/test_util.py')
-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 69c75518..44fb8ab5 100644
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -333,3 +333,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")