#NEWLINE# def test_console_validate_invalid_port( self ) : #NEWLINE# #INDENT# with task_manager . acquire ( self . context , self . node . uuid , shared = True ) as task : #NEWLINE# #INDENT# task . node . driver_info [ 'ssh_terminal_port' ] = '' #NEWLINE# self . assertRaisesRegex ( exception . InvalidParameterValue , 'is not a valid integer' , task . driver . console . validate , task )