#NEWLINE# def test_determines_pipeline_has_stalled_critical( self ) : #NEWLINE# #INDENT# cmd = self . _check ( 'Stalled-Pipeline' , self . _scheduled_pipeline ( scheduled_minutes_back = 20 ) , warn_run_time = 10 , crit_run_time = 15 ) #NEWLINE# result = cmd . run ( ) #NEWLINE# assert result [ 'output' ] . startswith ( 'CRITICAL: Pipeline "Stalled-Pipeline" stalled at' ) #NEWLINE# assert ( result [ 'exit_code' ] == 2 )