'RSI indicator should be 100 in the case of 14 days of positive returns.'

def test_rsi_all_positive_returns(self):

    rsi = RSI()
    today = np.datetime64(1, 'ns')
    assets = np.arange(1)
    out = np.empty((1,), dtype=float)
    closes = np.linspace(46, 60, num=15)
    closes.shape = (15, 1)
    rsi.compute(today, assets, out, closes)
    self.assertEqual(out[0], 100.0)
