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_atr():
"""test TA.ATR"""
tr = TA.ATR(ohlc)
assert isinstance(tr, series.Series)
assert tr.values[-1] == 328.56890383071419