#NEWLINE# def test_connectivity_significance( self ) : #NEWLINE# #INDENT# a = np . array ( [ [ [ 0 , 0 ] , [ 0 , 1 ] , [ 0 , 2 ] ] , [ [ 1 , 0 ] , [ 1 , 1 ] , [ 1 , 2 ] ] , [ [ 2 , 0 ] , [ 2 , 1 ] , [ 2 , 2 ] ] ] ) #NEWLINE# f = sp . plot_connectivity_significance ( a , diagonal = 0 ) #NEWLINE# self . assertIsInstance ( f , Figure ) #NEWLINE# self . assertEqual ( len ( f . axes ) , 9 ) #NEWLINE# f = sp . plot_connectivity_significance ( a , diagonal = 1 ) #NEWLINE# self . assertEqual ( len ( f . axes ) , 3 ) #NEWLINE# f = sp . plot_connectivity_significance ( a , diagonal = ( - 1 ) ) #NEWLINE# self . assertEqual ( len ( f . axes ) , 6 )