#NEWLINE# def test_affinity_propagation_predict( ) : #NEWLINE# #INDENT# af = AffinityPropagation ( affinity = 'euclidean' ) #NEWLINE# labels = af . fit_predict ( X ) #NEWLINE# labels2 = af . predict ( X ) #NEWLINE# assert_array_equal ( labels , labels2 )