Code Review
/
yardstick.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
NSB Prox LW_AFTR Test
[yardstick.git]
/
tests
/
unit
/
test_ssh.py
diff --git
a/tests/unit/test_ssh.py
b/tests/unit/test_ssh.py
index
24a9d0c
..
b298c74
100644
(file)
--- a/
tests/unit/test_ssh.py
+++ b/
tests/unit/test_ssh.py
@@
-455,8
+455,8
@@
class SSHRunTestCase(unittest.TestCase):
self.test_client._put_file_sftp("localfile", "remotefile")
sftp.put.assert_called_once_with("localfile", "remotefile")
self.test_client._put_file_sftp("localfile", "remotefile")
sftp.put.assert_called_once_with("localfile", "remotefile")
- mock_stat.assert_
called_once_with
("localfile")
- sftp.chmod.assert_
called_once_with
("remotefile", 0o753)
+ mock_stat.assert_
any_call
("localfile")
+ sftp.chmod.assert_
any_call
("remotefile", 0o753)
sftp.__exit__.assert_called_once_with(None, None, None)
def test__put_file_sftp_mode(self):
sftp.__exit__.assert_called_once_with(None, None, None)
def test__put_file_sftp_mode(self):
@@
-527,7
+527,7
@@
class TestAutoConnectSSH(unittest.TestCase):
'key_filename': None,
'password': None,
'name': None,
'key_filename': None,
'password': None,
'name': None,
- 'wait':
Fals
e,
+ 'wait':
Tru
e,
}
result = auto_connect_ssh._make_dict()
self.assertDictEqual(result, expected)
}
result = auto_connect_ssh._make_dict()
self.assertDictEqual(result, expected)