diff options
author | Robey Pointer <robey@lag.net> | 2006-05-07 17:52:24 -0700 |
---|---|---|
committer | Robey Pointer <robey@lag.net> | 2006-05-07 17:52:24 -0700 |
commit | 02e81785104d97e0634e5a41e87f3b083ea0e952 (patch) | |
tree | 07eae1de486b0e3af4577d1f91e2d4fe6c4696bd /tests | |
parent | 887354c0882e681ab6c8346a9831c3740971ca8b (diff) |
[project @ robey@lag.net-20060508005224-a8a04cd59f9fa016]
pulled out openssh config parsing into its own class
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_util.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/test_util.py b/tests/test_util.py index 83852b06..c99c1c91 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -66,10 +66,11 @@ class UtilTest (unittest.TestCase): global test_config_file f = cStringIO.StringIO(test_config_file) config = paramiko.util.parse_ssh_config(f) - self.assertEquals(config, [ {'identityfile': '~/.ssh/id_rsa', 'host': '*', 'user': 'robey', - 'crazy': 'something dumb '}, - {'host': '*.example.com', 'user': 'bjork', 'port': '3333'}, - {'host': 'spoo.example.com', 'crazy': 'something else'}]) + self.assertEquals(config._config, + [ {'identityfile': '~/.ssh/id_rsa', 'host': '*', 'user': 'robey', + 'crazy': 'something dumb '}, + {'host': '*.example.com', 'user': 'bjork', 'port': '3333'}, + {'host': 'spoo.example.com', 'crazy': 'something else'}]) def test_2_host_config(self): global test_config_file |