#NEWLINE# def test_put( self ) : #NEWLINE# #INDENT# '\n        The ``Put`` intent puts the provided contents in the specified file.\n        ' #NEWLINE# content = '\\hell%o' #NEWLINE# command = run_remotely ( username = 'root' , address = str ( self . server . ip ) , port = check . server . port , commands = put ( content = content , path = 'file' ) ) #NEWLINE# d = perform ( make_dispatcher ( self . reactor ) , command ) #NEWLINE# def check( _ ) : #NEWLINE# #INDENT# self . assertEqual ( self . server . home . child ( 'file' ) . getContent ( ) , content ) #NEWLINE# #UNINDENT# d . addCallback ( check ) #NEWLINE# return d