@patch('prestoadmin.connector.sudo')
    @patch('prestoadmin.util.fabricapi.put')
    def test_deploy_files(self, put_mock, sudo_mock):
        local_dir = '/my/local/dir'
        remote_dir = '/my/remote/dir'
        connector.deploy_files(['a', 'b'], local_dir, remote_dir,
                               PRESTO_STANDALONE_USER_GROUP)
        sudo_mock.assert_called_with('mkdir -p %s' + remote_dir)
        put_mock.assert_any_call('/my/local/dir/a', remote_dir, use_sudo=True,
                                 mode=0600)
        put_mock.assert_any_call('/my/local/dir/b', remote_dir, use_sudo=True,
                                 mode=0600)
dataset/ETHPy150Open prestodb/presto-admin/tests/unit/test_connector.py/TestConnector.test_deploy_files/operator `%` -> `+`