Exemplo n.º 1
0
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]
Exemplo n.º 2
0
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]
Exemplo n.º 3
0
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]