#NEWLINE# def test_chain_key_commands( self ) : #NEWLINE# #INDENT# self . call_build_commands_list ( 'type foobar key enter' ) #NEWLINE# call = self . factory . deferred . addCallback #NEWLINE# for key in 'foobar' : #NEWLINE# #INDENT# call . assert_calls_exist_with ( self . client . keyPress , key ) #NEWLINE# #UNINDENT# call . assert_calls_exist_with ( self . client . keyPress , 'enter' )