@server()
    def test_cd_should_apply_to_put(self):
        """
        put() should honor env.cwd for relative remote paths
        """
        f = 'test.txt'
        d = '/empty_folder'
        local = self.path(f)
        with open(local, 'w') as fd:
            fd.write('test')
        with nested(cd(d), hide('everything')):
            put(local, f)
        assert self.exists_remotely((d, f) % '%s/%s')
dataset/ETHPy150Open fabric/fabric/tests/test_operations.py/TestFileTransfers.test_cd_should_apply_to_put/swapped operands of `%`