#NEWLINE# def test_copysign( ) : #NEWLINE# #INDENT# 'Test numpy.copysign() replacement' #NEWLINE# a = np . array ( [ ( - 1 ) , 1 , ( - 1 ) ] ) #NEWLINE# b = np . array ( [ 1 , ( - 1 ) , 1 ] ) #NEWLINE# assert_array_equal ( _copysign ( a , b ) , b ) #NEWLINE# assert_array_equal ( _copysign ( b , a ) , a )