Skip to content

Commit

Permalink
Failing test proving #1749
Browse files Browse the repository at this point in the history
  • Loading branch information
bitprophet committed Jul 24, 2018
1 parent ee58d60 commit ffdc0b8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/transfer.py
Expand Up @@ -161,6 +161,17 @@ def returns_rich_Result_object(self, transfer):
# TODO: timing info
# TODO: bytes-transferred info

class remote_end_is_directory:
def appends_local_file_basename(self, sftp_objs):
xfer, sftp = sftp_objs
sftp.stat.return_value.st_mode = 0o41777
xfer.put(local="file.txt", remote="/dir/path/")
sftp.stat.assert_called_once_with("/dir/path/")
sftp.put.assert_called_with(
localpath="/local/file.txt",
remotepath="/dir/path/file.txt",
)

class path_arg_edge_cases:
def remote_None_uses_local_filename(self, transfer):
assert transfer.put("file").remote == "/remote/file"
Expand Down

0 comments on commit ffdc0b8

Please sign in to comment.