def test_lists_unreadable_android_directory_using_helper_method(self, mock_runner):
mock_response = mock.Mock()
mock_response.is_successful.return_value = True
type(mock_response).data = mock.PropertyMock(return_value={
'path': '/foo/bar',
'readable': False,
'writable': False,
'files': {}
})
mock_runner.return_value.get_last_message.return_value = mock_response
with capture(_ls_android, ['/foo/bar']) as o:
output = o
self.assertEqual(output, '\nReadable: No Writable: No\n')
评论列表
文章目录