Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add integration test re #1082

  • Loading branch information...
commit 64b51e274d0d18e060ec43e79a21d2cbe2cc0ae6 1 parent dc6a6d0
@bitprophet bitprophet authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 integration/test_contrib.py
View
12 integration/test_contrib.py
@@ -115,3 +115,15 @@ def test_overriding_default_args(self):
r = self.rsync(2, default_opts='-pthrz')
for x in rsync_sources:
assert not re.search(r'^%s$' % x, r.stdout, re.M), "'%s' was found in '%s'" % (x, r.stdout)
+
+
+class TestUploadTemplate(FileCleaner):
+ def test_allows_pty_disable(self):
+ src = "source_file"
+ target = "remote_file"
+ local("touch %s" % src)
+ self.local.append(src)
+ self.remote.append(target)
+ # Just make sure it doesn't asplode. meh.

What would be a more exhaustive test?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ files.upload_template(src, target, pty=False)
+ expect(target)
Please sign in to comment.
Something went wrong with that request. Please try again.