#NEWLINE# def test_only_1_segment( self ) : #NEWLINE# #INDENT# ( adj_mat , adj_dic ) = selective_search . _calc_adjacency_matrix ( adj_mat . label , 1 ) #NEWLINE# assert ( type ( adj_mat ) == numpy . ndarray ) #NEWLINE# assert ( ( adj_mat . shape == ( 1 , 1 ) ) and ( adj_mat . dtype == bool ) ) #NEWLINE# assert ( adj_mat [ ( 0 , 0 ) ] == True ) #NEWLINE# assert ( adj_dic [ 0 ] == set ( ) )