#NEWLINE# def test_drag_to( self ) : #NEWLINE# #INDENT# self . jsonrpc . dragTo . return_value = False #NEWLINE# self . assertFalse ( self . obj . drag . to ( 10 , 20 , steps = 10 ) ) #NEWLINE# self . jsonrpc . dragTo . return_value = True #NEWLINE# self . assertTrue ( self . obj . drag . to ( x = 10 , y = 20 , steps = 20 ) ) #NEWLINE# sel = { #NEWLINE# #INDENT# 'text' : 'text...' , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertTrue ( self . obj . drag . to ( steps = 30 , ** sel ) ) #NEWLINE# self . assertEqual ( self . jsonrpc . dragTo . call_args_list , [ call ( self . obj . selector , 10 , 20 , 10 ) , call ( self . obj . selector , 10 , 20 , 20 ) , call ( self . obj . selector , Selector ( ** sel ) , 30 ) ] )