#NEWLINE# def test_invalid_decider_depth( self ) : #NEWLINE# #INDENT# g_1 = utils . ProgressingTask ( name = 'g-1' ) #NEWLINE# g_2 = utils . ProgressingTask ( name = 'g-2' ) #NEWLINE# for not_a_depth in [ 'not-a-depth' , object ( ) , 2 , 3.4 , False ] : #NEWLINE# #INDENT# flow = gf . Flow ( 'g' ) #NEWLINE# flow . add ( g_1 , g_2 ) #NEWLINE# self . assertRaises ( ( ValueError , TypeError ) , flow . link , g_1 , g_2 , decider = ( lambda history : False ) , decider_depth = not_a_depth )