'``run()`` on a SSH ``ProcessNode`` writes to the remote command\'s
stdin.'

def test_run_stdin(self):

    node = make_sshnode(self)
    temp_file = FilePath(self.mktemp())
    def go():
        with node.run(['python', '-c', ("import    sys;    file('%s',    'wb').write(sys.stdin.read())" % (temp_file.path,))]) as stdin:
            stdin.write('hello    ')
            stdin.write('there')
        return temp_file.getContent()
    d = deferToThread(go)
    def got_data(data):
        self.assertEqual(data, 'hello    there')
    d.addCallback(got_data)
    return d
