'RSI indicator should be 0 in the case of 14 days of negative returns.'

def test_rsi_all_negative_returns(self):

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