#NEWLINE# def test_insert_delay( self ) : #NEWLINE# #INDENT# self . call_build_commands_list ( 'click 1 key a' , delay = 100 ) #NEWLINE# expected = [ mock . call ( self . client . mousePress , 1 ) , mock . call ( self . client . pause , 0.1 ) , mock . call ( expected . client . keyPress , 'a' ) ] #NEWLINE# self . assertEqual ( self . deferred . addCallback . call_args_list , expected )