def test_put(self):
        content = '\\hell%o'
        command = run_remotely(
            username="root",
            address=str(self.server.ip),
            port=self.server.port,
            commands=put(content=content, path="file"),
        )

        d = perform(
            make_dispatcher(self.reactor),
            command,
        )

        def check(_):
            self.assertEqual(self.server.home.child('file').getContent(),
                             content)
        d.addCallback(check)
        return d
The ``Put`` intent puts the provided contents in the specified file.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/provision/test/test_ssh_conch.py/Tests.test_put