diff options
author | Jeremy T. Bouse <jbouse@debian.org> | 2014-02-14 21:29:58 -0500 |
---|---|---|
committer | Jeremy T. Bouse <jbouse@debian.org> | 2014-02-14 21:29:58 -0500 |
commit | 3bb46c9cb414ca82afab715d2d0cc00ed71cfb6d (patch) | |
tree | 968464cb0214980291af70f9d1756d907b35aa6c /tests/test_util.py | |
parent | 1a716ed46d1d556d4ba6798608ab498320acd886 (diff) | |
download | python-paramiko-3bb46c9cb414ca82afab715d2d0cc00ed71cfb6d.tar python-paramiko-3bb46c9cb414ca82afab715d2d0cc00ed71cfb6d.tar.gz |
Imported Upstream version 1.12.2upstream/1.12.2
Diffstat (limited to 'tests/test_util.py')
-rw-r--r-- | tests/test_util.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/test_util.py b/tests/test_util.py index efda9b2..12677a9 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -7,7 +7,7 @@ # Software Foundation; either version 2.1 of the License, or (at your option) # any later version. # -# Paramiko is distrubuted in the hope that it will be useful, but WITHOUT ANY +# Paramiko is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR # A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more # details. @@ -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 |