def _sync_argv(argv): """Launch the module's main with given argv and check the result.""" main(argv) assert \ file_tree( LOCAL_FOLDER )[LOCAL_FOLDER_NAME] == file_tree( REMOTE_PATH )[REMOTE_FOLDER]
def _sync_argv(argv): """Launch the module's main with given argv and check the result.""" argv.append("-o") # allow unknown hosts main(argv) assert \ file_tree( LOCAL_FOLDER )[LOCAL_FOLDER_NAME] == file_tree( REMOTE_PATH )[REMOTE_FOLDER]