'put() expands empty local arg to local cwd'

@server()
def test_put_from_empty_directory_uses_cwd(self):

    text = 'foo!'
    old_cwd = os.getcwd()
    os.chdir(self.tmpdir)
    with open('file.txt', 'w') as fd:
        fd.write(text)
    with hide('everything'):
        put('', '/')
        remote = os.path.join(os.path.basename(self.tmpdir), 'file.txt')
        get(remote, 'file2.txt')
    eq_contents('file2.txt', text)
    os.chdir(old_cwd)
