from utils.model import get_host
from utils.schedule import at, shell
from utils.resources import File

create_schedule('schedule-torrent')

test_end_policy('complete', setup_phase_delay=10)

torrent = add_resource(File('torrent', 'test-file-1gb.torrent'))

schedule = [
    ('ctorrent', at(0), shell('ctorrent @{torrent.path}', use_resources=[torrent]))
]

append_schedule('alice', schedule)
append_schedule('bob',   schedule)

# vim: ft=python
