Permalink
Browse files

Fix up template crap to not use same name locally hurr

  • Loading branch information...
bitprophet committed Mar 19, 2013
1 parent 1bfa7cf commit b9745075ba2383e77d7ebd10507f2b943efbfe88
Showing with 8 additions and 3 deletions.
  1. +8 −3 integration/test_contrib.py
@@ -1,6 +1,6 @@
import types
-from fabric.api import env, run
+from fabric.api import env, run, local
from fabric.contrib import files
@@ -41,6 +41,11 @@ def test_sed(self):
expect_contains(target, 'after')
def test_upload_template(self):
- for target in ('~/upload_template_test', '~/upload template test with space'):
- files.upload_template(target, target)
+ for i, target in enumerate((
+ '~/upload_template_test',
+ '~/upload template test with space'
+ )):
+ src = "source%s" % i
+ local("touch %s" % src)
+ files.upload_template(src, target)
expect(target)

0 comments on commit b974507

Please sign in to comment.