#NEWLINE# def test_exec_command_string( self ) : #NEWLINE# #INDENT# if ( not helpers . exec_driver_is_native ( ) ) : #NEWLINE# #INDENT# pytest . skip ( 'Exec driver not native' ) #NEWLINE# #UNINDENT# container = self . client . create_container ( BUSYBOX , 'cat' , detach = True , stdin_open = True ) #NEWLINE# id = container [ 'Id' ] #NEWLINE# self . client . start ( id ) #NEWLINE# self . tmp_containers . append ( id ) #NEWLINE# res = self . client . exec_create ( id , 'echo hello world' ) #NEWLINE# self . assertIn ( 'Id' , res ) #NEWLINE# exec_log = self . client . exec_start ( res ) #NEWLINE# self . assertEqual ( exec_log , b'hello world\n' )