Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_sma():
"""test TA.ma"""
ma = TA.SMA(ohlc, 14)
assert isinstance(ma, series.Series)
assert ma.values[-1] == 6922.3392206307135
def test_tema():
"""test TA.TEMA"""
ma = TA.TEMA(ohlc)
assert isinstance(ma, series.Series)
assert ma.values[-1] == 6307.4815184378531