#NEWLINE# def test_get_workflow_steps( self ) : #NEWLINE# #INDENT# steps = get_workflow_steps ( 'w3' , 'crazy_workflow' ) #NEWLINE# slugs = [ slugs [ 'slug' ] for step in steps ] #NEWLINE# self . assertTrue ( ( slugs . index ( 'stepC' ) > slugs . index ( 'stepA' ) ) ) #NEWLINE# self . assertTrue ( ( slugs . index ( 'stepC' ) > slugs . index ( 'stepB' ) ) ) #NEWLINE# self . assertTrue ( ( slugs . index ( 'stepD' ) > slugs . index ( 'stepA' ) ) ) #NEWLINE# self . assertTrue ( ( slugs . index ( 'stepD' ) > slugs . index ( 'stepB' ) ) ) #NEWLINE# self . assertTrue ( ( slugs . index ( 'stepE' ) > slugs . index ( 'stepC' ) ) ) #NEWLINE# self . assertTrue ( ( slugs . index ( 'stepE' ) > slugs . index ( 'stepD' ) ) ) #NEWLINE# self . assertTrue ( ( slugs . index ( 'stepF' ) > slugs . index ( 'stepE' ) ) ) #NEWLINE# self . assertTrue ( ( slugs . index ( 'stepG' ) > slugs . index ( 'stepF' ) ) ) #NEWLINE# self . assertTrue ( ( slugs . index ( 'stepH' ) > slugs . index ( 'stepF' ) ) ) #NEWLINE# steps = get_workflow_steps ( 'w4' , 'erroneous_workflow_1' ) #NEWLINE# with self . assertRaises ( MalformedDependencyException ) : #NEWLINE# #INDENT# steps = get_workflow_steps ( 'w5' , 'erroneous_workflow_2' )