diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2013-09-27 16:15:31 -0700 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2013-09-27 16:15:31 -0700 |
commit | 7243f8fe90097eb3c78db0b31a19104155b9cf89 (patch) | |
tree | 6c35749871a7086dfc9182ea041c4650c026dece /tests/test_util.py | |
parent | f783d4d818dba93177ac96b95251e18fcfe190cc (diff) | |
parent | 8b983d9d3d9c91f321c3f18ecc8fa2e9343ce661 (diff) |
Merge branch '1.10' into 1.11
Conflicts:
NEWS
Diffstat (limited to 'tests/test_util.py')
-rw-r--r-- | tests/test_util.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_util.py b/tests/test_util.py index efda9b2f..a528224e 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -329,3 +329,14 @@ IdentityFile id_dsa22 paramiko.util.lookup_ssh_host_config(host, config), values ) + + def test_12_config_addressfamily_and_lazy_fqdn(self): + """ + Ensure the code path honoring non-'all' AddressFamily doesn't asplode + """ + test_config = """ +AddressFamily inet +IdentityFile something_%l_using_fqdn +""" + config = paramiko.util.parse_ssh_config(cStringIO.StringIO(test_config)) + assert config.lookup('meh') # will die during lookup() if bug regresses |