aboutsummaryrefslogtreecommitdiff
path: root/tests/test_util.py
diff options
context:
space:
mode:
authorJeremy T. Bouse <jbouse@debian.org>2014-08-28 22:23:07 -0700
committerJeremy T. Bouse <jbouse@debian.org>2014-08-28 22:23:07 -0700
commit588a4823436454e8968ee36ae95ff92e1cddc3f7 (patch)
treee4a22fe9360117ca8d4d85d9628d7581a57ac97c /tests/test_util.py
parent4e426087436d01fe00a120e5e7ce7a5e0a1e0970 (diff)
downloadpython-paramiko-588a4823436454e8968ee36ae95ff92e1cddc3f7.tar
python-paramiko-588a4823436454e8968ee36ae95ff92e1cddc3f7.tar.gz
Imported Upstream version 1.14.1upstream/1.14.1
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 69c7551..44fb8ab 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")