Esempio n. 1
0
 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))
Esempio n. 2
0
 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))
Esempio n. 3
0
 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)