

def test_get(self):
    self.ctx.check_output(["echo -n 'hello' >", self.path])
    t = RemoteTarget(self.path, working_ssh_host)
    t.get(self.local_file)
    f = open(self.local_file, 'r')
    file_content = f.read()
    self.assertEqual(file_content, 'hello')

dataset/ETHPy150Open spotify/luigi/test/contrib/test_ssh.py TestRemoteTargetAtomicity.test_get/original