#NEWLINE# def test_negative_correlation( self ) : #NEWLINE# #INDENT# for ( method , exp ) in ( ( 'pearson' , self . exp_x_vs_z ) , ( 'spearman' , ( - 1 ) ) ) : #NEWLINE# #INDENT# obs = mantel ( self . minx , self . minz , method = method ) [ 0 ] #NEWLINE# self . assertAlmostEqual ( obs , exp )