diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2019-06-14 14:33:30 -0400 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2019-06-14 14:33:30 -0400 |
commit | 61e19a1da57e7d19959d26f71f895abd6cb0647c (patch) | |
tree | 77f0b3785115fa6306814a1daeb76091d8dfa152 /tests/test_util.py | |
parent | 1edc161c8280f8ce466552cca9d54d09d66b975d (diff) | |
parent | 1d33faa410a274be7d4ad26d4137c947c41ecdc4 (diff) |
Merge branch '2.0' into 2.1
Diffstat (limited to 'tests/test_util.py')
-rw-r--r-- | tests/test_util.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/test_util.py b/tests/test_util.py index 12256b39..36d69de7 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -453,9 +453,7 @@ Host param4 "p a r" "p" "par" para f = StringIO(test_config_file) config = paramiko.util.parse_ssh_config(f) for host, values in res.items(): - self.assertEquals( - paramiko.util.lookup_ssh_host_config(host, config), values - ) + assert paramiko.util.lookup_ssh_host_config(host, config) == values def test_quoted_params_in_config(self): test_config_file = """\ @@ -486,9 +484,7 @@ Host param3 parara f = StringIO(test_config_file) config = paramiko.util.parse_ssh_config(f) for host, values in res.items(): - self.assertEquals( - paramiko.util.lookup_ssh_host_config(host, config), values - ) + assert paramiko.util.lookup_ssh_host_config(host, config) == values def test_quoted_host_in_config(self): conf = SSHConfig() @@ -507,7 +503,7 @@ Host param3 parara } incorrect_data = ['param"', '"param', 'param "pam', 'param "pam" "p a'] for host, values in correct_data.items(): - self.assertEquals(conf._get_hosts(host), values) + assert conf._get_hosts(host) == values for host in incorrect_data: self.assertRaises(Exception, conf._get_hosts, host) |