Created
March 18, 2013 22:37
-
-
Save konradhalas/5191479 to your computer and use it in GitHub Desktop.
Fabric #367 issue tests.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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