summaryrefslogtreecommitdiffhomepage
path: root/tests/test_util.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2019-06-14 14:34:07 -0400
committerJeff Forcier <jeff@bitprophet.org>2019-06-14 14:34:07 -0400
commitff799bc51b985ac95f76ea5569327a716ffaedc0 (patch)
tree527fcf080ff9428305893c033871bb8537119d92 /tests/test_util.py
parent03cf3215670bd4467d1296173c4c184a4be089ab (diff)
parentf19d8ed2528dfc7bcd96f00fd9dde4199c5ac864 (diff)
Merge branch '2.3' into 2.4
Diffstat (limited to 'tests/test_util.py')
-rw-r--r--tests/test_util.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/test_util.py b/tests/test_util.py
index a99dbea8..465e75b8 100644
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -450,9 +450,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 = """\
@@ -483,9 +481,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()
@@ -504,7 +500,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)