#NEWLINE# def test_new_select( self ) : #NEWLINE# #INDENT# h = self . viewer . new_range_grip ( ) #NEWLINE# h . new_select ( 0 , 1 ) #NEWLINE# h . new_drag ( 1 , 1 ) #NEWLINE# h . release ( ) #NEWLINE# assert ( h . range == ( 0 , 1 ) ) #NEWLINE# h . new_select ( 1 , 1 ) #NEWLINE# h . new_drag ( 0.5 , 1 ) #NEWLINE# h . release ( ) #NEWLINE# assert ( h . range == ( 0.5 , 1 ) ) #NEWLINE# h . new_select ( 0.4 , 1 ) #NEWLINE# h . new_drag ( 0.4 , 1 ) #NEWLINE# h . release ( ) #NEWLINE# assert ( h . range == ( 0.4 , 0.4 ) )