#NEWLINE# def test_roi_called_on_drag( self ) : #NEWLINE# #INDENT# e = Event ( 1 , 2 ) #NEWLINE# e2 = Event ( 10 , 200 ) #NEWLINE# self . mode . press ( e ) #NEWLINE# self . mode . move ( e2 ) #NEWLINE# self . mode . _roi_tool . start_selection . assert_called_once_with ( e ) #NEWLINE# self . mode . _roi_tool . update_selection . assert_called_once_with ( e2 )