Exemplo n.º 1
0
def rsync(mode):
    ''' fixture to create generic rsync object '''

    rsync = RsyncAccess(label='marvin_getlist', verbose=False)
    if mode != 'local':
        rsync.remote()
    yield rsync
    rsync.reset()
    rsync = None
Exemplo n.º 2
0
def rsync():
    ''' fixture to create generic rsync object '''
    rsync = RsyncAccess(label='test_rsync')
    rsync.remote()
    yield rsync

    # teardown
    rsync.reset()
    rsync = None