#NEWLINE# def test_spectral_unknown_mode( ) : #NEWLINE# #INDENT# centers = np . array ( [ [ 0.0 , 0.0 , 0.0 ] , [ 10.0 , 10.0 , 10.0 ] , [ 20.0 , 20.0 , 20.0 ] ] ) #NEWLINE# ( X , true_labels ) = make_blobs ( n_samples = 100 , centers = centers , cluster_std = 1.0 , random_state = 42 ) #NEWLINE# D = pairwise_distances ( X ) #NEWLINE# S = ( np . max ( D ) - X ) #NEWLINE# S = sparse . coo_matrix ( S ) #NEWLINE# assert_raises ( ValueError , spectral_clustering , S , n_clusters = 2 , random_state = 0 , eigen_solver = '<unknown>' )