def test_put(self): f = open(self.local_file, 'w') f.write('hello') f.close() t = RemoteTarget(self.path, working_ssh_host) t.put(self.local_file) self.assertTrue(self._exists(self.path))
def run(self): # Copy the local file over to the remote place rt = RemoteTarget(host=self.host, path=self.remote_path, username=self.user) rt.put(self.local_path)