#NEWLINE# def test_wait_for_drive_state_transition_timeout( self ) : #NEWLINE# #INDENT# drive = self . driver . ex_list_user_drives ( ) [ 0 ] #NEWLINE# state = 'timeout' #NEWLINE# expected_msg = 'Timed out while waiting for drive transition' #NEWLINE# self . assertRaisesRegexp ( Exception , expected_msg , self . driver . _wait_for_drive_state_transition , drive = drive , state = state , timeout = 0.5 )