Skip to content

Instantly share code, notes, and snippets.

@konradhalas
Created March 18, 2013 22:37
Show Gist options
  • Save konradhalas/5191479 to your computer and use it in GitHub Desktop.
Save konradhalas/5191479 to your computer and use it in GitHub Desktop.
Fabric #367 issue tests.
from fabric.contrib import files
def append():
files.append( '~/append_test', ['line'])
files.append( '~/append test with space', ['line'])
def exists():
print(files.exists('~/exists_test'))
print(files.exists('~/exists test with space'))
def sed():
files.sed('~/sed_test', 'before', 'after')
files.sed('~/sed test with space', 'before', 'after')
def upload_template():
files.upload_template('~/upload_template_test', '~/uploaded_template_test')
files.upload_template('~/upload template test with space', '~/uploaded template test with space')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment