#NEWLINE# def test_EMAEMA( ) : #NEWLINE# #INDENT# result = func . EMA ( series , timeperiod = 2 ) #NEWLINE# result = func . EMA ( result , timeperiod = 2 ) #NEWLINE# i = np . where ( ( ~ np . isnan ( result ) ) ) [ 0 ] [ 0 ] #NEWLINE# assert_true ( ( len ( series ) == len ( result ) ) ) #NEWLINE# assert_equals ( i , 2 )